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.

Can't rebuild nslog on windows

See original GitHub issue

I’m running electron-rebuild on an Appveyor machine and cannot rebuild the nslog module. I’ve tried a seemingly endless combination of node, npm, python, and visual studio versions to no avail. Here’s the log, any ideas?

C:\projects\my-app\app\node_modules\nslog>if not defined npm_config_node_gyp (node "C:\projects\my-app\app\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild ) 

npm WARN prefer global coffee-script@1.9.3 should be installed with -g
gyp ERR! clean error 
gyp ERR! stack Error: EPERM, unlink 'C:\projects\my-app\app\node_modules\nslog\build\Release\nslog.node'
gyp ERR! stack     at Error (native)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\projects\\my-app\\app\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\projects\my-app\app\node_modules\nslog
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok 

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "node" "C:\\projects\\mavensmate-app\\app\\node_modules\\npm\\bin\\npm-cli.js" "rebuild" "--target=0.30.2" "--arch=ia32"
npm ERR! node v0.12.7
npm ERR! npm  v3.2.1
npm ERR! code ELIFECYCLE
npm ERR! nslog@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nslog@2.0.0 install script 'node-gyp rebuild'.
npm ERR! 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 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:\projects\my-app\app\node_modules\npm-debug.log

Process exited with code: 1

Please note npm install nslog works fine.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
tobicocommented, Feb 16, 2016

Thanks @simoneb, I got there in the end, using command line arguments:

electron-rebuild -w sqlite3 -p

I feel like these are probably useful enough to warrant mentioning them in the Readme. I can write up some notes in a PR if that helps.

0reactions
delebashcommented, Sep 28, 2016

@iarovyi The -h is for “help” which shows a list of switches. The actual command is ./node_modules/.bin/electron-rebuild -w (insert your module) -p In my case to rebuild leveldown I use ./node_modules/.bin/electron-rebuild -w leveldown -p

I think the above error is because you are prefixing the command with nodeat least that is the error I get if I try the below command node ./node_modules/.bin/electron-rebuild -w leveldown -p

Don’t try to run it with node just paste this into your terminal as is ./node_modules/.bin/electron-rebuild -w leveldown -p

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't rebuild nslog on windows · Issue #15 · electron ... - GitHub
I'm running electron-rebuild on an Appveyor machine and cannot rebuild the nslog module. I've tried a seemingly endless combination of node , ...
Read more >
Print/NSLog messages not showing o… - Apple Developer
If I rebuild and run the app again, the messages don't appear. The issue persists whether I use NSLog or Swift's print statement...
Read more >
Installing and configuring the NSLOG server | Citrix ADC 13.1
To download NSLOG package from www.Citrix.com · To install NSLOG server on a Windows operating system · To uninstall the NSLOG server on...
Read more >
NSLog for Console window - Stack Overflow
Try Shift + + C (equivalent to View > Debug Area > Activate Console). Credit to this original answer.
Read more >
[Solved]-iPhone: NSLog self.window.rootviewcontroller
You can get the class name using [self.window.rootViewController className] however this should return UITabBarController.
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