Open onury opened 8 years ago
Have you tried a more recent version of node/npm? e.g. node 6.2 and npm 3.8.
I cannot use a non-LTS Node version. But I updated node to latest LTS v4.4.7 And updated NPM to latest v3.10.3
result is the same.
It looks to be a permissions problem, possibly in the electron-prebuilt module or possibly because you don't have adequate permission when running the install command.
I run it with sudo
.
sudo npm install devtool -g
same result.
i got a same problem , i uninstall and install again ,still can not work. the ERR info was `npm ERR! Darwin 15.5.0 npm ERR! argv "/usr/local/Cellar/node/6.1.0/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/Users/wanganming/.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--cache=/Users/wanganming/.cnpm" "--registry=https://registry.npm.taobao.org" "--node-gyp=/usr/local/lib/node_modules/cnpm/node_modules/node-gyp/bin/node-gyp.js" "install" "devtool" "-g" "-dd" npm ERR! node v6.1.0 npm ERR! npm v2.14.22 npm ERR! code ELIFECYCLE
npm ERR! electron-prebuilt@1.1.1 postinstall: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron-prebuilt@1.1.1 postinstall script 'node install.js'.
npm ERR! This is most likely a problem with the electron-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls electron-prebuilt
npm ERR! There is likely additional logging output above.`
Try:
rm -rf ~/.electron
mkdir ~/.electron
chmod 777 ~/.electron/
sudo npm -g install electron-prebuilt
sudo npm -g install devtool
Mac OS X, v10.11.5 Node v4.4.3 NPM v3.10.2