Cypress: 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.

Created on 8 Jul 2019  路  6Comments  路  Source: cypress-io/cypress

Current behavior:

Desired behavior:

Steps to reproduce: (app code and test code)

Versions

All 6 comments

We use 3.3.2 without problems. Don't you have some additional output of npm?

All good. I have installed thank you

I'm getting this exact same error on Windows with a corporate firewall. Please let me know what you did @kris4345 to solve the problem. Thanks!

@haakon-io Can you share the entire error output that you're getting?

@flotwig << Sure thing here is the log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'cypress',
1 verbose cli   '--save-dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session cb1bd5507524a972
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/cypress 699ms (from cache)
8 silly pacote range manifest for cypress@~3.3.1 fetched in 713ms
9 timing stage:loadCurrentTree Completed in 2313ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 14ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 371ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 http fetch GET 304 https://registry.npmjs.org/commander 546ms (from cache)
18 silly pacote version manifest for [email protected] fetched in 551ms
19 silly resolveWithNewModule [email protected] checking installable status
20 http fetch GET 304 https://registry.npmjs.org/cachedir 579ms (from cache)
21 http fetch GET 304 https://registry.npmjs.org/common-tags 577ms (from cache)
22 http fetch GET 304 https://registry.npmjs.org/executable 577ms (from cache)
23 http fetch GET 304 https://registry.npmjs.org/arch 583ms (from cache)
24 http fetch GET 304 https://registry.npmjs.org/execa 580ms (from cache)
25 silly pacote version manifest for [email protected] fetched in 584ms
<<< Removed some lines for brevity >>>
2993 silly saveTree +-- [email protected]
2993 silly saveTree `-- [email protected]
2994 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
2995 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
2996 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
2996 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
2996 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
2996 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
2997 verbose stack Error: [email protected] postinstall: `node index.js --exec install`
2997 verbose stack Exit status 1
2997 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
2997 verbose stack     at EventEmitter.emit (events.js:198:13)
2997 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
2997 verbose stack     at ChildProcess.emit (events.js:198:13)
2997 verbose stack     at maybeClose (internal/child_process.js:982:16)
2997 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
2998 verbose pkgid [email protected]
2999 verbose cwd C:\webs\AC\ngic
3000 verbose Windows_NT 10.0.14393
3001 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "cypress" "--save-dev"
3002 verbose node v10.16.0
3003 verbose npm  v6.9.0
3004 error code ELIFECYCLE
3005 error errno 1
3006 error [email protected] postinstall: `node index.js --exec install`
3006 error Exit status 1
3007 error Failed at the [email protected] postinstall script.
3007 error This is probably not a problem with npm. There is likely additional logging output above.
3008 verbose exit [ 1, true ]

@flotwig << Sure thing here is the log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'cypress',
1 verbose cli   '--save-dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session cb1bd5507524a972
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/cypress 699ms (from cache)
8 silly pacote range manifest for cypress@~3.3.1 fetched in 713ms
9 timing stage:loadCurrentTree Completed in 2313ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 14ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 371ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 http fetch GET 304 https://registry.npmjs.org/commander 546ms (from cache)
18 silly pacote version manifest for [email protected] fetched in 551ms
19 silly resolveWithNewModule [email protected] checking installable status
20 http fetch GET 304 https://registry.npmjs.org/cachedir 579ms (from cache)
21 http fetch GET 304 https://registry.npmjs.org/common-tags 577ms (from cache)
22 http fetch GET 304 https://registry.npmjs.org/executable 577ms (from cache)
23 http fetch GET 304 https://registry.npmjs.org/arch 583ms (from cache)
24 http fetch GET 304 https://registry.npmjs.org/execa 580ms (from cache)
25 silly pacote version manifest for [email protected] fetched in 584ms
<<< Removed some lines for brevity >>>
2993 silly saveTree +-- [email protected]
2993 silly saveTree `-- [email protected]
2994 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
2995 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
2996 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
2996 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
2996 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
2996 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
2997 verbose stack Error: [email protected] postinstall: `node index.js --exec install`
2997 verbose stack Exit status 1
2997 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
2997 verbose stack     at EventEmitter.emit (events.js:198:13)
2997 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
2997 verbose stack     at ChildProcess.emit (events.js:198:13)
2997 verbose stack     at maybeClose (internal/child_process.js:982:16)
2997 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
2998 verbose pkgid [email protected]
2999 verbose cwd C:\webs\AC\ngic
3000 verbose Windows_NT 10.0.14393
3001 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "cypress" "--save-dev"
3002 verbose node v10.16.0
3003 verbose npm  v6.9.0
3004 error code ELIFECYCLE
3005 error errno 1
3006 error [email protected] postinstall: `node index.js --exec install`
3006 error Exit status 1
3007 error Failed at the [email protected] postinstall script.
3007 error This is probably not a problem with npm. There is likely additional logging output above.
3008 verbose exit [ 1, true ]

heyy how did you solves this issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simonhaenisch picture simonhaenisch  路  3Comments

rbung picture rbung  路  3Comments

EirikBirkeland picture EirikBirkeland  路  3Comments

zbigniewkalinowski picture zbigniewkalinowski  路  3Comments

jennifer-shehane picture jennifer-shehane  路  3Comments