erikdubbelboer / node-sleep

Add sleep() and usleep() to nodejs
MIT License
453 stars 40 forks source link

Win7: Build fails #11

Closed mdix closed 10 years ago

mdix commented 10 years ago

When trying to install sleep on Win7 (node 0.10.26) I get the following errors:

C:\Users\some_user\Documents\repos\mym_hlk_prototype>npm install sleep
npm WARN package.json mym-gk@0.0.0 No repository field.
npm WARN package.json assert@0.4.9 assert is also the name of a node core module
.
npm WARN package.json xml2hbs@0.2.0 No repository field.
npm http GET https://registry.npmjs.org/sleep
npm http 304 https://registry.npmjs.org/sleep
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/mkdirp

> sleep@1.1.3 install C:\Users\some_user\Documents\repos\mym_hlk_prototype\node_modul
es\sleep
> node build.js || nodejs build.js

C:\Users\some_user\Documents\repos\mym_hlk_prototype\node_modules\sleep>node "C:\Prog
ram Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\
bin\node-gyp.js" rebuild sleep
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parall
ele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
  sleep.cc
..\sleep.cc(9): fatal error C1083: Datei (Include) kann nicht geöffnet werden:
"unistd.h": No such file or directory [C:\Users\some_user\Documents\repos\mym_hlk_pr
ototype\node_modules\sleep\build\node_sleep.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild" "sleep"
gyp ERR! cwd C:\Users\some_user\Documents\repos\mym_hlk_prototype\node_modules\sleep
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
[sleep]: Error: Failed to execute 'node-gyp.cmd rebuild sleep' (1)
Der Befehl "nodejs" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! sleep@1.1.3 install: `node build.js || nodejs build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sleep@1.1.3 install script.
npm ERR! This is most likely a problem with the sleep package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js || nodejs build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls sleep
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sleep"
npm ERR! cwd C:\Users\some_user\Documents\repos\mym_hlk_prototype
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\some_user\Documents\repos\mym_hlk_prototype\npm-debug.log
npm ERR! not ok code 0

Best Marc

erikdubbelboer commented 10 years ago

I just pushed a new version to npm, I don't have a windows machine to test so can you please test if it is working now? Thanks, Erik.

mdix commented 10 years ago

Hi @ErikDubbelboer,

thanks for your super fast reaction.

1.1.4 works like a charm! The problems have vanished.

Thanks for your help!

Best Marc