Error while trying to install cypress with ubuntu 18.04
mkdir cypressTest
cd cypressTest
npm init
npm install cypress --save-dev
!10391
> [email protected] postinstall /root/cypresstest/node_modules/cypress
> node index.js --exec install
internal/modules/cjs/loader.js:651
throw err;
^
Error: Cannot find module '/root/cypresstest/node_modules/cypress/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:649:15)
at Function.Module._load (internal/modules/cjs/loader.js:575:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:862:12)
at internal/main/run_main_module.js:21:11
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node index.js --exec install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/xtrremx/.npm/_logs/2019-03-28T08_33_18_514Z-debug.log
OS: ubuntu 18.04 64bit
npm: 6.7.0
Is there any extra information in the /home/xtrremx/.npm/_logs/2019-03-28T08_33_18_514Z-debug.log?
4723 silly postinstall [email protected]
4724 info lifecycle [email protected]~postinstall: [email protected]
4725 silly postinstall [email protected]
4726 info lifecycle [email protected]~postinstall: [email protected]
4727 silly postinstall [email protected]
4728 info lifecycle [email protected]~postinstall: [email protected]
4729 silly postinstall [email protected]
4730 info lifecycle [email protected]~postinstall: [email protected]
4731 silly postinstall [email protected]
4732 info lifecycle [email protected]~postinstall: [email protected]
4733 silly postinstall [email protected]
4734 info lifecycle [email protected]~postinstall: [email protected]
4735 silly postinstall [email protected]
4736 info lifecycle [email protected]~postinstall: [email protected]
4737 silly postinstall [email protected]
4738 info lifecycle [email protected]~postinstall: [email protected]
4739 silly postinstall [email protected]
4740 info lifecycle [email protected]~postinstall: [email protected]
4741 silly postinstall [email protected]
4742 info lifecycle [email protected]~postinstall: [email protected]
4743 silly postinstall [email protected]
4744 info lifecycle [email protected]~postinstall: [email protected]
4745 silly postinstall [email protected]
4746 info lifecycle [email protected]~postinstall: [email protected]
4747 silly postinstall [email protected]
4748 info lifecycle [email protected]~postinstall: [email protected]
4749 silly postinstall [email protected]
4750 info lifecycle [email protected]~postinstall: [email protected]
4751 silly postinstall [email protected]
4752 info lifecycle [email protected]~postinstall: [email protected]
4753 silly postinstall [email protected]
4754 info lifecycle [email protected]~postinstall: [email protected]
4755 silly postinstall [email protected]
4756 info lifecycle [email protected]~postinstall: [email protected]
4757 silly postinstall [email protected]
4758 info lifecycle [email protected]~postinstall: [email protected]
4759 silly postinstall [email protected]
4760 info lifecycle [email protected]~postinstall: [email protected]
4761 silly postinstall [email protected]
4762 info lifecycle [email protected]~postinstall: [email protected]
4763 silly postinstall [email protected]
4764 info lifecycle [email protected]~postinstall: [email protected]
4765 silly postinstall [email protected]
4766 info lifecycle [email protected]~postinstall: [email protected]
4767 silly postinstall [email protected]
4768 info lifecycle [email protected]~postinstall: [email protected]
4769 silly postinstall [email protected]
4770 info lifecycle [email protected]~postinstall: [email protected]
4771 silly postinstall [email protected]
4772 info lifecycle [email protected]~postinstall: [email protected]
4773 silly postinstall [email protected]
4774 info lifecycle [email protected]~postinstall: [email protected]
4775 silly postinstall [email protected]
4776 info lifecycle [email protected]~postinstall: [email protected]
4777 silly postinstall [email protected]
4778 info lifecycle [email protected]~postinstall: [email protected]
4779 silly postinstall [email protected]
4780 info lifecycle [email protected]~postinstall: [email protected]
4781 silly postinstall [email protected]
4782 info lifecycle [email protected]~postinstall: [email protected]
4783 silly postinstall [email protected]
4784 info lifecycle [email protected]~postinstall: [email protected]
4785 silly postinstall [email protected]
4786 info lifecycle [email protected]~postinstall: [email protected]
4787 silly postinstall [email protected]
4788 info lifecycle [email protected]~postinstall: [email protected]
4789 silly postinstall [email protected]
4790 info lifecycle [email protected]~postinstall: [email protected]
4791 silly postinstall [email protected]
4792 info lifecycle [email protected]~postinstall: [email protected]
4793 silly postinstall [email protected]
4794 info lifecycle [email protected]~postinstall: [email protected]
4795 silly postinstall [email protected]
4796 info lifecycle [email protected]~postinstall: [email protected]
4797 silly postinstall [email protected]
4798 info lifecycle [email protected]~postinstall: [email protected]
4799 silly postinstall [email protected]
4800 info lifecycle [email protected]~postinstall: [email protected]
4801 silly postinstall [email protected]
4802 info lifecycle [email protected]~postinstall: [email protected]
4803 silly postinstall [email protected]
4804 info lifecycle [email protected]~postinstall: [email protected]
4805 silly postinstall [email protected]
4806 info lifecycle [email protected]~postinstall: [email protected]
4807 silly postinstall [email protected]
4808 info lifecycle [email protected]~postinstall: [email protected]
4809 silly postinstall [email protected]
4810 info lifecycle [email protected]~postinstall: [email protected]
4811 silly postinstall [email protected]
4812 info lifecycle [email protected]~postinstall: [email protected]
4813 silly postinstall [email protected]
4814 info lifecycle [email protected]~postinstall: [email protected]
4815 silly postinstall [email protected]
4816 info lifecycle [email protected]~postinstall: [email protected]
4817 silly postinstall [email protected]
4818 info lifecycle [email protected]~postinstall: [email protected]
4819 silly postinstall [email protected]
4820 info lifecycle [email protected]~postinstall: [email protected]
4821 silly postinstall [email protected]
4822 info lifecycle [email protected]~postinstall: [email protected]
4823 silly postinstall [email protected]
4824 info lifecycle [email protected]~postinstall: [email protected]
4825 silly postinstall [email protected]
4826 info lifecycle [email protected]~postinstall: [email protected]
4827 silly postinstall [email protected]
4828 info lifecycle [email protected]~postinstall: [email protected]
4829 silly postinstall [email protected]
4830 info lifecycle [email protected]~postinstall: [email protected]
4831 silly postinstall [email protected]
4832 info lifecycle [email protected]~postinstall: [email protected]
4833 silly postinstall [email protected]
4834 info lifecycle [email protected]~postinstall: [email protected]
4835 silly postinstall [email protected]
4836 info lifecycle [email protected]~postinstall: [email protected]
4837 silly postinstall [email protected]
4838 info lifecycle [email protected]~postinstall: [email protected]
4839 silly postinstall [email protected]
4840 info lifecycle [email protected]~postinstall: [email protected]
4841 silly postinstall [email protected]
4842 info lifecycle [email protected]~postinstall: [email protected]
4843 silly postinstall @cypress/[email protected]
4844 info lifecycle @cypress/[email protected]~postinstall: @cypress/[email protected]
4845 silly postinstall @cypress/[email protected]
4846 info lifecycle @cypress/[email protected]~postinstall: @cypress/[email protected]
4847 silly postinstall [email protected]
4848 info lifecycle [email protected]~postinstall: [email protected]
4849 silly postinstall [email protected]
4850 info lifecycle [email protected]~postinstall: [email protected]
4851 silly postinstall [email protected]
4852 info lifecycle [email protected]~postinstall: [email protected]
4853 silly postinstall [email protected]
4854 info lifecycle [email protected]~postinstall: [email protected]
4855 silly postinstall [email protected]
4856 info lifecycle [email protected]~postinstall: [email protected]
4857 silly postinstall [email protected]
4858 info lifecycle [email protected]~postinstall: [email protected]
4859 silly postinstall [email protected]
4860 info lifecycle [email protected]~postinstall: [email protected]
4861 silly postinstall [email protected]
4862 info lifecycle [email protected]~postinstall: [email protected]
4863 silly postinstall [email protected]
4864 info lifecycle [email protected]~postinstall: [email protected]
4865 silly postinstall [email protected]
4866 info lifecycle [email protected]~postinstall: [email protected]
4867 silly postinstall [email protected]
4868 info lifecycle [email protected]~postinstall: [email protected]
4869 silly postinstall [email protected]
4870 info lifecycle [email protected]~postinstall: [email protected]
4871 silly postinstall [email protected]
4872 info lifecycle [email protected]~postinstall: [email protected]
4873 silly postinstall [email protected]
4874 info lifecycle [email protected]~postinstall: [email protected]
4875 silly postinstall [email protected]
4876 info lifecycle [email protected]~postinstall: [email protected]
4877 silly postinstall [email protected]
4878 info lifecycle [email protected]~postinstall: [email protected]
4879 silly postinstall [email protected]
4880 info lifecycle [email protected]~postinstall: [email protected]
4881 silly postinstall [email protected]
4882 info lifecycle [email protected]~postinstall: [email protected]
4883 silly postinstall [email protected]
4884 info lifecycle [email protected]~postinstall: [email protected]
4885 silly postinstall [email protected]
4886 info lifecycle [email protected]~postinstall: [email protected]
4887 silly postinstall [email protected]
4888 info lifecycle [email protected]~postinstall: [email protected]
4889 silly postinstall [email protected]
4890 info lifecycle [email protected]~postinstall: [email protected]
4891 silly postinstall [email protected]
4892 info lifecycle [email protected]~postinstall: [email protected]
4893 silly postinstall [email protected]
4894 info lifecycle [email protected]~postinstall: [email protected]
4895 silly postinstall [email protected]
4896 info lifecycle [email protected]~postinstall: [email protected]
4897 verbose lifecycle [email protected]~postinstall: unsafe-perm in lifecycle false
4898 verbose lifecycle [email protected]~postinstall: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/cypresstest/node_modules/cypress/node_modules/.bin:/root/cypresstest/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
4899 verbose lifecycle [email protected]~postinstall: CWD: /root/cypresstest/node_modules/cypress
4900 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'node index.js --exec install' ]
4901 silly lifecycle [email protected]~postinstall: Returned: code: 1 signal: null
4902 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
4903 timing action:postinstall Completed in 53ms
4904 verbose unlock done using /home/xtrremx/.npm/_locks/staging-233604d260dd1d25.lock for /root/cypresstest/node_modules/.staging
4905 timing stage:rollbackFailedOptional Completed in 220ms
4906 timing stage:runTopLevelLifecycles Completed in 11234ms
4907 silly saveTree [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โโโฌ @cypress/[email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ @cypress/[email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโฌ [email protected]
4907 silly saveTree โ โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโฌ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โ โโโ [email protected]
4907 silly saveTree โโโฌ [email protected]
4907 silly saveTree โโโ [email protected]
4907 silly saveTree โโโ [email protected]
4908 warn [email protected] No repository field.
4909 verbose stack Error: [email protected] postinstall: `node index.js --exec install`
4909 verbose stack Exit status 1
4909 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
4909 verbose stack at EventEmitter.emit (events.js:197:13)
4909 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
4909 verbose stack at ChildProcess.emit (events.js:197:13)
4909 verbose stack at maybeClose (internal/child_process.js:988:16)
4909 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
4910 verbose pkgid [email protected]
4911 verbose cwd /root/cypresstest
4912 verbose Linux 4.15.0-46-generic
4913 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "cypress" "--save-dev"
4914 verbose node v11.12.0
4915 verbose npm v6.7.0
4916 error code ELIFECYCLE
4917 error errno 1
4918 error [email protected] postinstall: `node index.js --exec install`
4918 error Exit status 1
4919 error Failed at the [email protected] postinstall script.
4919 error This is probably not a problem with npm. There is likely additional logging output above.
4920 verbose exit [ 1, true ]
xtrremx@0xIslamTaha ~
% !10092
@jennifer-shehane any updates?
Sorry, nothing is pointing to the exact reason yet. Can you run the install with the DEBUG logs? https://on.cypress.io/debugging#Print-DEBUG-logs
@0xIslamTaha did you resolve this? I'm getting the same issue in my ubuntu 16 environment.
@jennifer-shehane i tried running my install with the debug command
DEBUG=cypress:* npm install cypress
but didn't get any more logging, just saw what has already been posted above. Did I write the debug command incorrectly?
@mark-c-woodard no I didnt resolve it. I think there is a bug in building using npm.
But, U can download the binary and run it
Hi I am using mac and have the same issue
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. can you help me please
Hello. I'm trying to install on Windows 10, and am getting the same issue:
Installing Cypress (version: 3.4.0)
ร Downloading Cypress
โ Cypress Version: 3.4.0
Unzipping Cypress
Finishing Installation
The Cypress App could not be downloaded.
Please check network connectivity and try again:
----------
URL: https://download.cypress.io/desktop/3.4.0?platform=win32&arch=x64
Error: connect ETIMEDOUT 104.25.215.23:443
----------
Platform: win32 (10.0.16299)
Cypress Version: 3.4.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node index.js --exec install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\jg572h\AppData\Roaming\npm-cache\_logs\2019-07-12T13_40_01_364Z-debug.log
Although the error suggests there is a problem with network connectivity, there is not; my network works just fine. I am behind a Proxy, however. I have npm configured to work with the Proxy, but is there other configuration that needs to be done for Cypress?
@jg572h Do you have an HTTP_PROXY environment variable set? The CLI uses that to download the Cypress package. If not, just set HTTP_PROXY to the same proxy you're using for NPM.
@flotwig That fixed the problem. Thanks!
Update to this:
The above issue was resolved for me by unchecking "Read-only" in the properties of the "C:/Users/[USER]/AppData/Local/Temp" folder.
I was facing the same issue with:
npm 6.13.4
ubuntu 18.04
node 12.14.0
Found another issue on google with the solution.
Try to add --unsafe-perm=true --allow-root to the end and for me it worked.
But first it looks like it worked but at the end it fails.
Good damn this sucks. :(
The exact same issue was happening to me.
However when I downgraded 4.0.2 to 3.8.0, I did not get the error, and it worked fine.
Currently facing this issue:
Error: Cannot find module '@cypress/listr-verbose-renderer'
My setup
npm 6.11.3
node 10.17.0
ubuntu 18.04
cypress 3.8.3
Facing same issue when running npm install --save listr-verbose-renderer .
The same issue for me, did anyone find any solution?
Still having this issue. Any solution?
@jonathan-marz 's solution quoted here :
Try to add
--unsafe-perm=true --allow-rootto the end and for me it worked.
worked for me and allowed me to run cypress as a dev dependency using :
sudo npm i --save-dev cypress --unsafe-perm=true --allow-root
closing as stale.
This is happening to me as well
C:\DONTWANTTOSHARE\Funnode_modules\fs-extra\lib\mkdirs\make-dir.js:85
} catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
npm WARN enoent ENOENT: no such file or directory, open 'C:\DONTWANTTOSHARE\Fun\package.json'
npm WARN Fun No description
npm WARN Fun No repository field.
npm WARN Fun No README data
npm WARN Fun No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node index.js --exec install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Most helpful comment
@jonathan-marz 's solution quoted here :
worked for me and allowed me to run cypress as a dev dependency using :
sudo npm i --save-dev cypress --unsafe-perm=true --allow-root