"npm install --save-dev electron-rebuild " Unsuccess
See original GitHub issuesystem:W7 32 npm:2.15.0 node:V4.4.2 electron:v1.1.0
Masters,I am new to electron and nodejs,please help me. When I run “npm install --save-dev electron-rebuild”, install unsuccess
Partial log:
14474 error Windows_NT 6.1.7601
14475 error argv “D:\WorkProgram\nodejs\node.exe” “D:\WorkProgram\nodejs\node_modules\npm\bin\npm-cli.js” “install” “–save-dev” “electron-rebuild”
14476 error node v4.4.2
14477 error npm v2.15.0
14478 error code ELIFECYCLE
14479 error nslog@3.0.0 install: node-gyp rebuild
14479 error Exit status 1
14480 error Failed at the nslog@3.0.0 install script ‘node-gyp rebuild’.
14480 error This is most likely a problem with the nslog package,
14480 error not with npm itself.
14480 error Tell the author that this fails on your system:
14480 error node-gyp rebuild
14480 error You can get information on how to open an issue for this project with:
14480 error npm bugs nslog
14480 error Or if that isn’t available, you can get their info via:
14480 error
14480 error npm owner ls nslog
14480 error There is likely additional logging output above.
14481 verbose exit [ 1, true ]
14482 verbose unbuild node_modules\electron-rebuild\node_modules\nslog
14483 info preuninstall nslog@3.0.0
14484 info uninstall nslog@3.0.0
14485 verbose unbuild rmStuff nslog@3.0.0 from C:\Users\Administrator\node_modules
14486 verbose unbuild rmStuff in C:\Users\Administrator\node_modules\electron-rebuild\node_modules
14487 info postuninstall nslog@3.0.0
14488 silly gentlyRm C:\Users\Administrator\node_modules\electron-rebuild\node_modules\nslog is being purged from base C:\Users\Administrator
14489 verbose gentlyRm don’t care about contents; nuking C:\Users\Administrator\node_modules\electron-rebuild\node_modules\nslog
14490 silly vacuum-fs purging C:\Users\Administrator\node_modules\electron-rebuild\node_modules\nslog
14491 silly vacuum-fs quitting because other entries in C:\Users\Administrator\node_modules\electron-rebuild\node_modules
14492 verbose unbuild node_modules\electron-rebuild
14493 info preuninstall electron-rebuild@1.1.4
14494 info uninstall electron-rebuild@1.1.4
14495 verbose unbuild rmStuff electron-rebuild@1.1.4 from C:\Users\Administrator\node_modules
14496 silly gentlyRm C:\Users\Administrator\node_modules.bin\electron-rebuild.cmd is being gently removed
14497 silly gentlyRm verifying C:\Users\Administrator is an npm working directory
14498 silly gentlyRm containing path C:\Users\Administrator is under npm’s control, in C:\Users\Administrator
14499 silly gentlyRm deletion target C:\Users\Administrator\node_modules.bin\electron-rebuild.cmd is under C:\Users\Administrator
14500 verbose gentlyRm vacuuming from C:\Users\Administrator\node_modules.bin\electron-rebuild.cmd up to C:\Users\Administrator
14501 silly gentlyRm C:\Users\Administrator\node_modules.bin\electron-rebuild is being gently removed
14502 silly gentlyRm verifying C:\Users\Administrator is an npm working directory
14503 silly gentlyRm containing path C:\Users\Administrator is under npm’s control, in C:\Users\Administrator
14504 silly gentlyRm deletion target C:\Users\Administrator\node_modules.bin\electron-rebuild is under C:\Users\Administrator
14505 verbose gentlyRm vacuuming from C:\Users\Administrator\node_modules.bin\electron-rebuild up to C:\Users\Administrator
14506 info postuninstall electron-rebuild@1.1.4
14507 silly gentlyRm C:\Users\Administrator\node_modules\electron-rebuild is being purged from base C:\Users\Administrator
14508 verbose gentlyRm don’t care about contents; nuking C:\Users\Administrator\node_modules\electron-rebuild
14509 silly vacuum-fs purging C:\Users\Administrator\node_modules\electron-rebuild
14510 silly vacuum-fs quitting because other entries in C:\Users\Administrator\node_modules
Issue Analytics
- State:
- Created 7 years ago
- Comments:24 (1 by maintainers)
Top GitHub Comments
@thomasjo , @ahallicks , I’m sorry for disturbing you again . Do I have to install node-gyp before installing electron-rebuild? If I have to install node-gyp.must I need to install these? [https://github.com/nodejs/node-gyp] On Windows: Visual C++ Build Environment: Option 1: Install Visual C++ Build Tools using the Default Install option. Option 2: Install Visual Studio 2015 (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions. 💡 [Windows Vista / 7 only] requires .NET Framework 4.5.1 Install Python 2.7 (v3.x.x is not supported), and run npm config set python python2.7 (or see below for further instructions on specifying the proper Python version and path.) Launch cmd, npm config set msvs_version 2015
Until now ,I have installed python 2.7, installed node-gyp with “npm install -g node-gyp” , installed BuildTools_Full_2015 .When I run "npm install --save-dev electron-rebuild " ,it still error.Should I follow the steps above?
The log: Microsoft Windows [版本 6.1.7601] 版权所有 © 2009 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>npm install --save-dev electron-rebuild
npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\Administrator
package.json’ npm WARN Administrator No description npm WARN Administrator No repository field. npm WARN Administrator No README data npm WARN Administrator No license field. npm ERR! Windows_NT 6.1.7601 npm ERR! argv “D:\WorkProgram\nodejs\node.exe” “D:\WorkProgram\nodejs\node _modules\npm\bin\npm-cli.js” “install” “–save-dev” “electron-rebuild” npm ERR! node v6.2.0 npm ERR! npm v3.8.9 npm ERR! code ELIFECYCLE
npm ERR! nslog@3.0.0 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nslog@3.0.0 install script ‘node-gyp rebuild’. 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 nslog package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs nslog npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls nslog npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Administrator\npm-debug.log
You don’t need to install the full VS2015. You should be fine with just the build tools https://www.microsoft.com/en-us/download/details.aspx?id=48159