2016-11-15 12 views
2

私は電子最新バージョンをインストールしようとしていますが、このエラーが発生しました。 sudoをインストールしようとしましたが、電子1.4.5にダウングレードしましたが、このエラーは解決しません。私が使用しているノードのバージョンがv7.1.0電子インストールエラー:electron1.4.6 postinstallスクリプト 'node install.js'で失敗しました

完全なエラーログ

npm ERR! Darwin 16.1.0 
npm ERR! argv "/usr/local/Cellar/node/6.6.0/bin/node" "/usr/local/bin/npm" "install" "-g" "[email protected]" "--verbose" 
npm ERR! node v6.6.0 
npm ERR! npm v3.10.7 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] postinstall: `node install.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'node install.js'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the electron 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 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls electron 
npm ERR! There is likely additional logging output above. 

答えて

1

それは私が使用しているnodeバージョンに問題があることが判明しています。おそらく、電子は、リリースされたノードの新しいバージョンと互換性がありません。

nvmをインストールし、ノードの下位バージョンをインストールしました。私の場合、v6.3.0。その後、私はエラーなく電子をインストールすることができました。

関連する問題