question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"npm install --save-dev electron-rebuild " Unsuccess

See original GitHub issue

system: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:closed
  • Created 7 years ago
  • Comments:24 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Xiao-Yarancommented, May 31, 2016

@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

nslog@3.0.0 install C:\Users\Administrator\node_modules\nslog node-gyp rebuild C:\Users\Administrator\node_modules\nslog>if not defined npm_config_node_gyp (no de “D:\WorkProgram\nodejs\node_modules\npm\bin\node-gyp-bin.…\node_modules
node-gyp\bin\node-gyp.js” rebuild ) else (node “” rebuild ) 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 C:\Users\Administrator\node_modules\nslog\build\nslog.vcxproj(19,3): error MSB4 019: 未找到导入的项目“C:\Microsoft.Cpp.Default.props”。请确认 <Import> 声明中 的路径正确,且磁盘上存在该文件。 gyp ERR! build error gyp ERR! stack Error: C:\Program Files\MSBuild\14.0\bin\msbuild.exe failed wit h exit code: 1 gyp ERR! stack at ChildProcess.onExit (D:\WorkProgram\nodejs\node_modules\np m\node_modules\node-gyp\lib\build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:204:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command “D:\WorkProgram\nodejs\node.exe” “D:\WorkProgram\nodejs\n ode_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild” gyp ERR! cwd C:\Users\Administrator\node_modules\nslog gyp ERR! node -v v6.2.0 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok C:\Users\Administrator `-- node-gyp@3.3.1

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

4reactions
ahallickscommented, May 30, 2016

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

"npm install --save-dev electron-rebuild " Unsuccess · Issue #69
When I run "npm install --save-dev electron-rebuild", install unsuccess Partial log: 14474 error Windows_NT 6.1.7601 14475 error ...
Read more >
electron-rebuild - npm
Electron supporting package to rebuild native node modules against the currently installed electron. Latest version: 3.2.9, last published: ...
Read more >
Error in electron-rebuild serialport on Windows - Stack Overflow
npm install --save-dev electron-rebuild. The last step is to run electron-rebuild, once again, just in the root >directory of the app:
Read more >
Installing SerialPort
npm install --save-dev electron-rebuild; Add electron-rebuild to your project's package.json's install hook; Run npm install.
Read more >
tojocky/node-printer - Gitter
Hi everyone, I just installed node-printer from npm and found that the API is not ... install electron-rebuild npm install --save-dev electron-rebuild ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found