electron: Failed at electron@1.6.2 postinstall: `node install.js`
issue with
npm ERR! Windows_NT 6.1.7601
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js” “install”
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! polyonic@1.0.0 postinstall: cd src && npm install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the polyonic@1.0.0 postinstall script ‘cd src && npm install’
- Electron version: 1.6.2
- Operating system: windows 7 64 bit
Actual behavior
tried many times repo, always got error. download manual git files is fine, no issue on network
How to reproduce
01 error argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install”
402 error node v6.10.2
403 error npm v3.10.10
404 error code ELIFECYCLE
405 error polyonic@1.0.0 postinstall: cd src && npm install
405 error Exit status 1
406 error Failed at the polyonic@1.0.0 postinstall script ‘cd src && npm install’.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 5
- Comments: 24 (3 by maintainers)
Links to this issue
Commits related to this issue
- Temporary work around for: https://github.com/electron/electron/issues/9323 — committed to openWMail/openWMail by geekgonecrazy 7 years ago
- Update package.json — committed to fyhao/electron-wf by fyhao 7 years ago
@malept good catch, thanks for info! If dependency will be broken for a long time - js-zip is another alternative.
Temporary fix for all: add
"extract-zip": "=1.6.0",to your project’spackage.jsondependencies in the same place whereelectrondependency located.From what I can tell, this is due to a regression in
extract-zipbetween 1.6.0 and 1.6.1. I’m reaching out to the maintainer of that module to see how to fix this. See: https://github.com/maxogden/extract-zip/issues/38In the meantime, I think we’ve established that it’s a problem, so it would be appreciated if everyone can refrain from “me too” comments. That way, the people who are subscribed to the issue gets less notification spam while this gets worked out. Thanks! (Please do not flood the extract-zip issue with “me too” comments, either.)
It’s really weird because 1.6.2 worked for me last week, but doesn’t work now. I’m not sure how an npm package can suddenly break whilst staying the same version number.
I created a fork for everybody who needs a quick fix. You can include it in your package.json like this:
Or if you need it globally:
Yeah, I can confirm that 1.6.0 of
extract-zipallows theinstall.jsto work correctly.Same issue here
https://github.com/electron/electron/issues/9326