Coder Social home page Coder Social logo

node-sleep's Introduction

Build Status Build status FOSSA Status

sleep

Add sleep(), msleep() and usleep() to Node.js, via a C++ binding.

This is mainly useful for debugging.

Note that because this is a C++ module, it will need to be built on the system you are going to use it on.

These calls will block execution of all JavaScript by halting Node.js' event loop!

Alternative

When using nodejs 9.3 or higher it's better to use Atomics.wait which doesn't require compiling this C++ module. The sleep and msleep functions can be implemented like this:

function msleep(n) {
  Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, n);
}
function sleep(n) {
  msleep(n*1000);
}

If you require usleep this module is still required.

Usage

var sleep = require('sleep');
  • sleep.sleep(n): sleep for n seconds
  • sleep.msleep(n): sleep for n miliseconds
  • sleep.usleep(n): sleep for n microseconds (1 second is 1000000 microseconds)

License

FOSSA Status

node-sleep's People

Contributors

anko avatar au5ton avatar cscott avatar dependabot[bot] avatar eljefedelrodeodeljefe avatar erikdubbelboer avatar evanhahn avatar florianholzapfel avatar fossabot avatar jamesmgreene avatar jcald1 avatar kristian-popov avatar leny avatar maciej-ka avatar matthew-andrews avatar nfischer avatar pilliq avatar willgibson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-sleep's Issues

NPM Warning

When installing this package with NPM v1.4.16, the following error occurs:

npm WARN package.json [email protected] 'repositories' (plural) Not supported. Please pick one as the 'repository' field

As I understand there is an optional field in each repo's package.json file that will address this. Please update to remove throwing of errors.

Some more insight can be found in this issue

npm install fail

when I exec npm install I obtain this error:

npm http GET https://registry.npmjs.org/sleep/2.0.0
npm http 304 https://registry.npmjs.org/sleep/2.0.0

> [email protected] install /Users/lorenzo/Documents/ProgettiWeb/scripts/node_modules/sleep
> node-gyp rebuild

  CXX(target) Release/obj.target/node_sleep/sleep.o
In file included from ../sleep.cc:2:
../../nan/nan.h:23:10: fatal error: 'uv.h' file not found
#include <uv.h>
         ^
1 error generated.
make: *** [Release/obj.target/node_sleep/sleep.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/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:789:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/lorenzo/Documents/ProgettiWeb/bitq-mobile/scripts/node_modules/sleep
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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-gyp rebuild
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 Darwin 14.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/lorenzo/Documents/ProgettiWeb/bitq-mobile/scripts
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/lorenzo/Documents/ProgettiWeb/bitq-mobile/scripts/npm-debug.log
npm ERR! not ok code 0

Any ideas?

Installation fails if node-gyp does (the fallback busy-wait isn't available)

I just tried this out as a dependency for a project, but found that installation of this module fails if the C++ compiler is insufficient. I found a different backup approach that isn't quite as good, but I thought I'd report it here in case you wanted to remove the fallback code (or could tell me how to utilize it). Here's some output that explains the install error:

https://travis-ci.org/nfischer/shelljs-plugin-sleep/jobs/155675245

This only occurs for the version of gcc installed on travis. Clang works fine.

Cannot install rpi Jessie

Hi There,
I hope this is an easy fix. I am new to nodejs. I am not able to install using npm. Please see below.

still1@rpi:~ $ sudo npm install -g sleep

[email protected] install /usr/local/lib/node_modules/sleep
node-gyp rebuild

make: Entering directory '/usr/local/lib/node_modules/sleep/build'
CXX(target) Release/obj.target/node_sleep/sleep.o
In file included from ../sleep.cc:2:0:
../node_modules/nan/nan.h:328:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
node_sleep.target.mk:82: recipe for target 'Release/obj.target/node_sleep/sleep.o' failed
make: *** [Release/obj.target/node_sleep/sleep.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/sleep/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.1.19-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/sleep
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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-gyp rebuild
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 Linux 4.1.19-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "sleep"
npm ERR! cwd /home/still1
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/still1/npm-debug.log
npm ERR! not ok code 0
still1@rpi:~ $ npm owner ls sleep
erikdubbelboer [email protected]

Thanks for your time.
Jeff

node-gyp rebuild exit status 1

I am running on Node 5.1.1 and I get the following:

npm ERR! Darwin 15.0.0
npm ERR! argv "/Users/rolandjitsu/.nvm/versions/node/v5.1.1/bin/node" "/Users/rolandjitsu/.nvm/versions/node/v5.1.1/bin/npm" "update"
npm ERR! node v5.1.1
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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 sleep 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 sleep
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/rolandjitsu/Projects/ng2-lab/npm-debug.log

GYP build issue

gyp: Call to 'node -e "require('nan')"' returned exit status 0. while trying to load binding.gyp

That's what I get when I try to install on Fedora using node v4.2.1, node-gyp v3.0.3

Any clue why?

thank you

npm install error on osx 10.10

Hi, I found a trouble when trying to install node-sleep on my osx 10.10.5 with xcode6 installed. Could you help me point out what went wrong?
This is the logs:

Adis-MBP:api adikurniawan$ npm install sleep
npm WARN package.json [email protected] No repository field.
\
> [email protected] install /Users/adikurniawan/Developer/project/tunity/git/api/node_modules/sleep
> node-gyp rebuild

  CXX(target) Release/obj.target/node_sleep/sleep.o
  SOLINK_MODULE(target) Release/node_sleep.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/node_sleep.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/adikurniawan/.nvm/v0.10.33/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "node" "/Users/adikurniawan/.nvm/v0.10.33/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/adikurniawan/Developer/project/tunity/git/api/node_modules/sleep
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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-gyp rebuild
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 Darwin 14.5.0
npm ERR! command "/Users/adikurniawan/.nvm/v0.10.33/bin/node" "/Users/adikurniawan/.nvm/v0.10.33/bin/npm" "install" "sleep"
npm ERR! cwd /Users/adikurniawan/Developer/project/tunity/git/api
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

Illegal `#ifdef` format error

When installing node-sleep on osx I get the following error:

  CXX(target) Release/obj.target/node_sleep/sleep.o
../sleep.cc:8:15: warning: extra tokens at end of #ifdef directive [-Wextra-tokens]
#ifdef _WIN32 || _WIN64
              ^
              //

I believe this is easily fixed by changing:

#ifdef _WIN32 || _WIN64

to:

#if defined _WIN64 || defined _WIN32

As I understand #ifdef is a shorthand for #if defined and so does not support || natively.

Thanks,

James

Cannot install on windows

I liked node sleep for my debugging needs to simply simulate high load on Linux and OSX but on windows I cannot install.


C:\Users\axel\Dropbox\meshcraft>npm install sleep
npm http GET https://registry.npmjs.org/sleep
npm http 304 https://registry.npmjs.org/sleep

[email protected] preinstall C:\Users\axel\Dropbox\meshcraft\node_modules\sleep
node-waf clean || (exit 0); node-waf configure build

"node-waf" kann syntaktisch an dieser Stelle nicht verarbeitet werden.

npm ERR! [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! cmd "/c" "node-waf clean || (exit 0); node-waf configure build" faile
d with 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall 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-waf clean || (exit 0); node-waf configure build
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!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File
s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sleep"
npm ERR! cwd C:\Users\axel\Dropbox\meshcraft
npm ERR! node -v v0.6.14
npm ERR! npm -v 1.1.12
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] preinstall: node-waf clean || (exit 0); node-waf c onfigure build
npm ERR! message cmd "/c" "node-waf clean || (exit 0); node-waf configure build " failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\axel\Dropbox\meshcraft\npm-debug.log
npm not ok

Win7: Build fails

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 [email protected] No repository field.
npm WARN package.json [email protected] assert is also the name of a node core module
.
npm WARN package.json [email protected] 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

> [email protected] 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! [email protected] install: `node build.js || nodejs build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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

npm install sleep --debug=false fails

I run node built with debug mode on. But I need to install packages that are not in debug mode. The way I do this with multiple packages is by passing '--debug=false' in the CLI, like:

npm install sleep --debug=false

This causes node-gyp to build the release version.

But I see this error:

CXX(target) Release/obj.target/node_sleep/sleep.o
SOLINK_MODULE(target) Release/node_sleep.node
SOLINK_MODULE(target) Release/node_sleep.node: Finished
[sleep]: Error: Build succeeded but target not found at build/Debug/node_sleep.node

The reason for it is this line:

https://github.com/ErikDubbelboer/node-sleep/blob/master/build-util/tools.js#L58

Can you please change it so it reads the value for it, in case it exists?

Add to npm

Hi, is it possible to add your library available from npm?

Thanks for your time.
Best regards.

sudo npm install sleep fails

Hello,

I'm trying to install sleep with sudo npm install sleep, but it's fails always.

Here the error:

`> [email protected] install /Users/Mohamed/test/node_modules/sleep

node-gyp rebuild

CXX(target) Release/obj.target/node_sleep/sleep.o
SOLINK_MODULE(target) Release/node_sleep.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/node_sleep.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Mohamed/test/node_modules/sleep
gyp ERR! node -v v5.1.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sleep"
npm ERR! node v5.1.0
npm ERR! npm v3.3.12
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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 sleep 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 sleep
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Mohamed/www.mddb.net/npm-debug.log
`

Can you help me please?

Thanks!

npm install sleep error

I am installing sleep module on Windows7 64 bit, python is on Path, node is on Path.

I am getting the following error log.
How to solve this?

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\Bitnami Node.js Stack\nodejs\node.exe',
1 verbose cli 'C:\Program Files\Bitnami Node.js Stack\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'sleep' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink C:\Program Files\Bitnami Node.js Stack\nodejs\node.exe
5 warn package.json [email protected] cluster is also the name of a node core module.
6 verbose cache add [ 'sleep', null ]
7 verbose cache add name=undefined spec="sleep" args=["sleep",null]
8 verbose parsed url { protocol: null,
8 verbose parsed url slashes: null,
8 verbose parsed url auth: null,
8 verbose parsed url host: null,
8 verbose parsed url port: null,
8 verbose parsed url hostname: null,
8 verbose parsed url hash: null,
8 verbose parsed url search: null,
8 verbose parsed url query: null,
8 verbose parsed url pathname: 'sleep',
8 verbose parsed url path: 'sleep',
8 verbose parsed url href: 'sleep' }
9 silly lockFile c3ca5f78-sleep sleep
10 verbose lock sleep C:\Users\pmverma\AppData\Roaming\npm-cache\c3ca5f78-sleep.lock
11 silly lockFile c3ca5f78-sleep sleep
12 silly lockFile c3ca5f78-sleep sleep
13 verbose addNamed [ 'sleep', '' ]
14 verbose addNamed [ null, '' ]
15 silly lockFile e2b4ed60-sleep sleep@
16 verbose lock sleep@ C:\Users\pmverma\AppData\Roaming\npm-cache\e2b4ed60-sleep.lock
17 silly addNameRange { name: 'sleep', range: '
', hasData: false }
18 verbose url raw sleep
19 verbose url resolving [ 'https://registry.npmjs.org/', './sleep' ]
20 verbose url resolved https://registry.npmjs.org/sleep
21 info trying registry request attempt 1 at 10:20:56
22 verbose etag "7IGF08CFUORJ3L6AE6OLTHRSL"
23 http GET https://registry.npmjs.org/sleep
24 http 304 https://registry.npmjs.org/sleep
25 silly registry.get cb [ 304,
25 silly registry.get { date: 'Fri, 07 Nov 2014 03:50:58 GMT',
25 silly registry.get server: 'Apache',
25 silly registry.get via: '1.1 varnish',
25 silly registry.get 'last-modified': 'Fri, 07 Nov 2014 03:50:58 GMT',
25 silly registry.get 'cache-control': 'max-age=60',
25 silly registry.get etag: '"7IGF08CFUORJ3L6AE6OLTHRSL"',
25 silly registry.get age: '0',
25 silly registry.get 'x-served-by': 'cache-hk91-HKG',
25 silly registry.get 'x-cache': 'MISS',
25 silly registry.get 'x-cache-hits': '0',
25 silly registry.get 'x-timer': 'S1415332258.769688,VS0,VE227',
25 silly registry.get vary: 'Accept',
25 silly registry.get 'content-length': '0',
25 silly registry.get 'keep-alive': 'timeout=10, max=50',
25 silly registry.get connection: 'Keep-Alive' } ]
26 verbose etag sleep from cache
27 silly addNameRange number 2 { name: 'sleep', range: '', hasData: true }
28 silly addNameRange versions [ 'sleep',
28 silly addNameRange [ '1.0.0',
28 silly addNameRange '1.0.1',
28 silly addNameRange '1.0.2',
28 silly addNameRange '1.1.0',
28 silly addNameRange '1.1.1',
28 silly addNameRange '1.1.2',
28 silly addNameRange '1.1.3',
28 silly addNameRange '1.1.4',
28 silly addNameRange '1.1.5',
28 silly addNameRange '1.1.6',
28 silly addNameRange '1.1.7',
28 silly addNameRange '1.1.8' ] ]
29 verbose addNamed [ 'sleep', '1.1.8' ]
30 verbose addNamed [ '1.1.8', '1.1.8' ]
31 silly lockFile b99c7caf-sleep-1-1-8 [email protected]
32 verbose lock [email protected] C:\Users\pmverma\AppData\Roaming\npm-cache\b99c7caf-sleep-1-1-8.lock
33 silly lockFile b99c7caf-sleep-1-1-8 [email protected]
34 silly lockFile b99c7caf-sleep-1-1-8 [email protected]
35 silly lockFile e2b4ed60-sleep sleep@
36 silly lockFile e2b4ed60-sleep sleep@
37 silly resolved [ { name: 'sleep',
37 silly resolved version: '1.1.8',
37 silly resolved main: './lib/index.js',
37 silly resolved description: 'Add sleep() and usleep() to nodejs',
37 silly resolved homepage: 'http://github.com/ErikDubbelboer/node-sleep',
37 silly resolved author: { name: 'Erik Dubbelboer', email: '[email protected]' },
37 silly resolved engines: { node: '>=0.4.0' },
37 silly resolved keywords: [ 'sleep', 'usleep' ],
37 silly resolved repository:
37 silly resolved { type: 'git',
37 silly resolved url: 'https://github.com/ErikDubbelboer/node-sleep.git' },
37 silly resolved dependencies: { mkdirp: '~0.3.5' },
37 silly resolved scripts: { install: 'node build.js || nodejs build.js' },
37 silly resolved gypfile: true,
37 silly resolved readme: 'sleep\n=====\n\nAdd sleep() and usleep() to nodejs.\n\nThis is mainly useful for debugging.\n\n__Sleep will block execution of all javascript!__\n===================================================\n\nOn windows the module will fall back to a while loop which will use 100% CPU!\n\nUsage\n-----\n\nvar sleep = require(\'sleep\');\n\n
sleep.sleep(n): sleep for n seconds\n* sleep.usleep(n): sleep for n microseconds (1 second is 1000000 microseconds)\n\nUpdate\n------\n\nNow bulids properly using node-gyp :)\n\n',
37 silly resolved readmeFilename: 'README.md',
37 silly resolved bugs: { url: 'https://github.com/ErikDubbelboer/node-sleep/issues' },
37 silly resolved _id: '[email protected]',
37 silly resolved _from: 'sleep@' } ]
38 info install [email protected] into C:\Users\pmverma
39 info installOne [email protected]
40 info C:\Users\pmverma\node_modules\sleep unbuild
41 verbose tar unpack C:\Users\pmverma\AppData\Roaming\npm-cache\sleep\1.1.8\package.tgz
42 silly lockFile 2ee32000-sers-pmverma-node-modules-sleep tar://C:\Users\pmverma\node_modules\sleep
43 verbose lock tar://C:\Users\pmverma\node_modules\sleep C:\Users\pmverma\AppData\Roaming\npm-cache\2ee32000-sers-pmverma-node-modules-sleep.lock
44 silly lockFile d2a860b6-pm-cache-sleep-1-1-8-package-tgz tar://C:\Users\pmverma\AppData\Roaming\npm-cache\sleep\1.1.8\package.tgz
45 verbose lock tar://C:\Users\pmverma\AppData\Roaming\npm-cache\sleep\1.1.8\package.tgz C:\Users\pmverma\AppData\Roaming\npm-cache\d2a860b6-pm-cache-sleep-1-1-8-package-tgz.lock
46 silly gunzTarPerm modes [ '755', '644' ]
47 silly gunzTarPerm extractEntry package.json
48 silly gunzTarPerm modified mode [ 'package.json', 438, 420 ]
49 silly gunzTarPerm extractEntry .npmignore
50 silly gunzTarPerm modified mode [ '.npmignore', 438, 420 ]
51 silly gunzTarPerm extractEntry README.md
52 silly gunzTarPerm modified mode [ 'README.md', 438, 420 ]
53 silly gunzTarPerm extractEntry test.js
54 silly gunzTarPerm modified mode [ 'test.js', 438, 420 ]
55 silly gunzTarPerm extractEntry build.js
56 silly gunzTarPerm modified mode [ 'build.js', 438, 420 ]
57 silly gunzTarPerm extractEntry binding.gyp
58 silly gunzTarPerm modified mode [ 'binding.gyp', 438, 420 ]
59 silly gunzTarPerm extractEntry .jshintrc
60 silly gunzTarPerm modified mode [ '.jshintrc', 438, 420 ]
61 silly gunzTarPerm extractEntry LICENSE.txt
62 silly gunzTarPerm modified mode [ 'LICENSE.txt', 438, 420 ]
63 silly gunzTarPerm extractEntry lib/binary_name.js
64 silly gunzTarPerm modified mode [ 'lib/binary_name.js', 438, 420 ]
65 silly gunzTarPerm extractEntry lib/index.js
66 silly gunzTarPerm modified mode [ 'lib/index.js', 438, 420 ]
67 silly gunzTarPerm extractEntry .jshintignore
68 silly gunzTarPerm modified mode [ '.jshintignore', 438, 420 ]
69 silly gunzTarPerm extractEntry sleep.cc
70 silly gunzTarPerm modified mode [ 'sleep.cc', 438, 420 ]
71 silly gunzTarPerm extractEntry build-util/tools.js
72 silly gunzTarPerm modified mode [ 'build-util/tools.js', 438, 420 ]
73 silly lockFile 2ee32000-sers-pmverma-node-modules-sleep tar://C:\Users\pmverma\node_modules\sleep
74 silly lockFile 2ee32000-sers-pmverma-node-modules-sleep tar://C:\Users\pmverma\node_modules\sleep
75 silly lockFile d2a860b6-pm-cache-sleep-1-1-8-package-tgz tar://C:\Users\pmverma\AppData\Roaming\npm-cache\sleep\1.1.8\package.tgz
76 silly lockFile d2a860b6-pm-cache-sleep-1-1-8-package-tgz tar://C:\Users\pmverma\AppData\Roaming\npm-cache\sleep\1.1.8\package.tgz
77 info preinstall [email protected]
78 verbose readDependencies using package.json deps
79 verbose readDependencies using package.json deps
80 verbose cache add [ 'mkdirp@~0.3.5', null ]
81 verbose cache add name=undefined spec="mkdirp@~0.3.5" args=["mkdirp@~0.3.5",null]
82 verbose parsed url { protocol: null,
82 verbose parsed url slashes: null,
82 verbose parsed url auth: null,
82 verbose parsed url host: null,
82 verbose parsed url port: null,
82 verbose parsed url hostname: null,
82 verbose parsed url hash: null,
82 verbose parsed url search: null,
82 verbose parsed url query: null,
82 verbose parsed url pathname: 'mkdirp@~0.3.5',
82 verbose parsed url path: 'mkdirp@~0.3.5',
82 verbose parsed url href: 'mkdirp@~0.3.5' }
83 verbose cache add name="mkdirp" spec="~0.3.5" args=["mkdirp","~0.3.5"]
84 verbose parsed url { protocol: null,
84 verbose parsed url slashes: null,
84 verbose parsed url auth: null,
84 verbose parsed url host: null,
84 verbose parsed url port: null,
84 verbose parsed url hostname: null,
84 verbose parsed url hash: null,
84 verbose parsed url search: null,
84 verbose parsed url query: null,
84 verbose parsed url pathname: '~0.3.5',
84 verbose parsed url path: '~0.3.5',
84 verbose parsed url href: '~0.3.5' }
85 verbose addNamed [ 'mkdirp', '~0.3.5' ]
86 verbose addNamed [ null, '>=0.3.5-0 <0.4.0-0' ]
87 silly lockFile c3f0fe9b-mkdirp-0-3-5 mkdirp@~0.3.5
88 verbose lock mkdirp@~0.3.5 C:\Users\pmverma\AppData\Roaming\npm-cache\c3f0fe9b-mkdirp-0-3-5.lock
89 silly addNameRange { name: 'mkdirp', range: '>=0.3.5-0 <0.4.0-0', hasData: false }
90 verbose url raw mkdirp
91 verbose url resolving [ 'https://registry.npmjs.org/', './mkdirp' ]
92 verbose url resolved https://registry.npmjs.org/mkdirp
93 info trying registry request attempt 1 at 10:20:57
94 verbose etag "8Z5QL0CBCC1VUA9RADLBGAJ89"
95 http GET https://registry.npmjs.org/mkdirp
96 http 304 https://registry.npmjs.org/mkdirp
97 silly registry.get cb [ 304,
97 silly registry.get { date: 'Fri, 07 Nov 2014 03:50:59 GMT',
97 silly registry.get server: 'Apache',
97 silly registry.get via: '1.1 varnish',
97 silly registry.get 'last-modified': 'Fri, 07 Nov 2014 03:48:12 GMT',
97 silly registry.get 'cache-control': 'max-age=60',
97 silly registry.get etag: '"8Z5QL0CBCC1VUA9RADLBGAJ89"',
97 silly registry.get age: '37',
97 silly registry.get 'x-served-by': 'cache-hk91-HKG',
97 silly registry.get 'x-cache': 'HIT',
97 silly registry.get 'x-cache-hits': '10',
97 silly registry.get 'x-timer': 'S1415332259.689318,VS0,VE0',
97 silly registry.get vary: 'Accept',
97 silly registry.get 'content-length': '0',
97 silly registry.get 'keep-alive': 'timeout=10, max=50',
97 silly registry.get connection: 'Keep-Alive' } ]
98 verbose etag mkdirp from cache
99 silly addNameRange number 2 { name: 'mkdirp', range: '>=0.3.5-0 <0.4.0-0', hasData: true }
100 silly addNameRange versions [ 'mkdirp',
100 silly addNameRange [ '0.0.1',
100 silly addNameRange '0.0.2',
100 silly addNameRange '0.0.3',
100 silly addNameRange '0.0.4',
100 silly addNameRange '0.0.5',
100 silly addNameRange '0.0.6',
100 silly addNameRange '0.0.7',
100 silly addNameRange '0.1.0',
100 silly addNameRange '0.2.0',
100 silly addNameRange '0.2.1',
100 silly addNameRange '0.2.2',
100 silly addNameRange '0.3.0',
100 silly addNameRange '0.3.1',
100 silly addNameRange '0.3.2',
100 silly addNameRange '0.3.3',
100 silly addNameRange '0.3.4',
100 silly addNameRange '0.3.5',
100 silly addNameRange '0.4.0',
100 silly addNameRange '0.4.1',
100 silly addNameRange '0.4.2',
100 silly addNameRange '0.5.0' ] ]
101 verbose addNamed [ 'mkdirp', '0.3.5' ]
102 verbose addNamed [ '0.3.5', '0.3.5' ]
103 silly lockFile 67d2df2a-mkdirp-0-3-5 [email protected]
104 verbose lock [email protected] C:\Users\pmverma\AppData\Roaming\npm-cache\67d2df2a-mkdirp-0-3-5.lock
105 silly lockFile 67d2df2a-mkdirp-0-3-5 [email protected]
106 silly lockFile 67d2df2a-mkdirp-0-3-5 [email protected]
107 silly lockFile c3f0fe9b-mkdirp-0-3-5 mkdirp@~0.3.5
108 silly lockFile c3f0fe9b-mkdirp-0-3-5 mkdirp@~0.3.5
109 silly resolved [ { name: 'mkdirp',
109 silly resolved description: 'Recursively mkdir, like mkdir -p',
109 silly resolved version: '0.3.5',
109 silly resolved author:
109 silly resolved { name: 'James Halliday',
109 silly resolved email: '[email protected]',
109 silly resolved url: 'http://substack.net' },
109 silly resolved main: './index',
109 silly resolved keywords: [ 'mkdir', 'directory' ],
109 silly resolved repository:
109 silly resolved { type: 'git',
109 silly resolved url: 'http://github.com/substack/node-mkdirp.git' },
109 silly resolved scripts: { test: 'tap test/*.js' },
109 silly resolved devDependencies: { tap: '~0.4.0' },
109 silly resolved license: 'MIT',
109 silly resolved readme: '# mkdirp\n\nLike mkdir -p, but in node.js!\n\nbuild status\n\n# example\n\n## pow.js\n\njs\nvar mkdirp = require(\'mkdirp\');\n \nmkdirp(\'/tmp/foo/bar/baz\', function (err) {\n if (err) console.error(err)\n else console.log(\'pow!\')\n});\n\n\nOutput\n\n\npow!\n\n\nAnd now /tmp/foo/bar/baz exists, huzzah!\n\n# methods\n\njs\nvar mkdirp = require(\'mkdirp\');\n\n\n## mkdirp(dir, mode, cb)\n\nCreate a new directory and any necessary subdirectories at dir with octal\npermission string mode.\n\nIf mode isn't specified, it defaults to 0777 & (~process.umask()).\n\ncb(err, made) fires with the error or the first directory made\nthat had to be created, if any.\n\n## mkdirp.sync(dir, mode)\n\nSynchronously create a new directory and any necessary subdirectories at dir\nwith octal permission string mode.\n\nIf mode isn't specified, it defaults to 0777 & (~process.umask()).\n\nReturns the first directory that had to be created, if any.\n\n# install\n\nWith npm do:\n\n\nnpm install mkdirp\n\n\n# license\n\nMIT\n',
109 silly resolved readmeFilename: 'readme.markdown',
109 silly resolved bugs: { url: 'https://github.com/substack/node-mkdirp/issues' },
109 silly resolved homepage: 'https://github.com/substack/node-mkdirp',
109 silly resolved _id: '[email protected]',
109 silly resolved _from: 'mkdirp@~0.3.5' } ]
110 info install [email protected] into C:\Users\pmverma\node_modules\sleep
111 info installOne [email protected]
112 info C:\Users\pmverma\node_modules\sleep\node_modules\mkdirp unbuild
113 verbose tar unpack C:\Users\pmverma\AppData\Roaming\npm-cache\mkdirp\0.3.5\package.tgz
114 silly lockFile 123c5039-odules-sleep-node-modules-mkdirp tar://C:\Users\pmverma\node_modules\sleep\node_modules\mkdirp
115 verbose lock tar://C:\Users\pmverma\node_modules\sleep\node_modules\mkdirp C:\Users\pmverma\AppData\Roaming\npm-cache\123c5039-odules-sleep-node-modules-mkdirp.lock
116 silly lockFile e7fb419c-m-cache-mkdirp-0-3-5-package-tgz tar://C:\Users\pmverma\AppData\Roaming\npm-cache\mkdirp\0.3.5\package.tgz
117 verbose lock tar://C:\Users\pmverma\AppData\Roaming\npm-cache\mkdirp\0.3.5\package.tgz C:\Users\pmverma\AppData\Roaming\npm-cache\e7fb419c-m-cache-mkdirp-0-3-5-package-tgz.lock
118 silly gunzTarPerm modes [ '755', '644' ]
119 silly gunzTarPerm extractEntry package.json
120 silly gunzTarPerm modified mode [ 'package.json', 438, 420 ]
121 silly gunzTarPerm extractEntry .npmignore
122 silly gunzTarPerm modified mode [ '.npmignore', 438, 420 ]
123 silly gunzTarPerm extractEntry LICENSE
124 silly gunzTarPerm modified mode [ 'LICENSE', 438, 420 ]
125 silly gunzTarPerm extractEntry index.js
126 silly gunzTarPerm modified mode [ 'index.js', 438, 420 ]
127 silly gunzTarPerm extractEntry .travis.yml
128 silly gunzTarPerm modified mode [ '.travis.yml', 438, 420 ]
129 silly gunzTarPerm extractEntry examples/pow.js
130 silly gunzTarPerm modified mode [ 'examples/pow.js', 438, 420 ]
131 silly gunzTarPerm extractEntry readme.markdown
132 silly gunzTarPerm modified mode [ 'readme.markdown', 438, 420 ]
133 silly gunzTarPerm extractEntry test/chmod.js
134 silly gunzTarPerm modified mode [ 'test/chmod.js', 438, 420 ]
135 silly gunzTarPerm extractEntry test/perm.js
136 silly gunzTarPerm modified mode [ 'test/perm.js', 438, 420 ]
137 silly gunzTarPerm extractEntry test/perm_sync.js
138 silly gunzTarPerm modified mode [ 'test/perm_sync.js', 438, 420 ]
139 silly gunzTarPerm extractEntry test/race.js
140 silly gunzTarPerm modified mode [ 'test/race.js', 438, 420 ]
141 silly gunzTarPerm extractEntry test/mkdirp.js
142 silly gunzTarPerm modified mode [ 'test/mkdirp.js', 438, 420 ]
143 silly gunzTarPerm extractEntry test/return.js
144 silly gunzTarPerm modified mode [ 'test/return.js', 438, 420 ]
145 silly gunzTarPerm extractEntry test/return_sync.js
146 silly gunzTarPerm modified mode [ 'test/return_sync.js', 438, 420 ]
147 silly gunzTarPerm extractEntry test/root.js
148 silly gunzTarPerm modified mode [ 'test/root.js', 438, 420 ]
149 silly gunzTarPerm extractEntry test/sync.js
150 silly gunzTarPerm modified mode [ 'test/sync.js', 438, 420 ]
151 silly gunzTarPerm extractEntry test/umask.js
152 silly gunzTarPerm modified mode [ 'test/umask.js', 438, 420 ]
153 silly gunzTarPerm extractEntry test/clobber.js
154 silly gunzTarPerm modified mode [ 'test/clobber.js', 438, 420 ]
155 silly gunzTarPerm extractEntry test/umask_sync.js
156 silly gunzTarPerm modified mode [ 'test/umask_sync.js', 438, 420 ]
157 silly gunzTarPerm extractEntry test/rel.js
158 silly gunzTarPerm modified mode [ 'test/rel.js', 438, 420 ]
159 silly lockFile 123c5039-odules-sleep-node-modules-mkdirp tar://C:\Users\pmverma\node_modules\sleep\node_modules\mkdirp
160 silly lockFile 123c5039-odules-sleep-node-modules-mkdirp tar://C:\Users\pmverma\node_modules\sleep\node_modules\mkdirp
161 silly lockFile e7fb419c-m-cache-mkdirp-0-3-5-package-tgz tar://C:\Users\pmverma\AppData\Roaming\npm-cache\mkdirp\0.3.5\package.tgz
162 silly lockFile e7fb419c-m-cache-mkdirp-0-3-5-package-tgz tar://C:\Users\pmverma\AppData\Roaming\npm-cache\mkdirp\0.3.5\package.tgz
163 info preinstall [email protected]
164 verbose readDependencies using package.json deps
165 verbose readDependencies using package.json deps
166 silly resolved []
167 verbose about to build C:\Users\pmverma\node_modules\sleep\node_modules\mkdirp
168 info build C:\Users\pmverma\node_modules\sleep\node_modules\mkdirp
169 verbose linkStuff [ false,
169 verbose linkStuff false,
169 verbose linkStuff false,
169 verbose linkStuff 'C:\Users\pmverma\node_modules\sleep\node_modules' ]
170 info linkStuff [email protected]
171 verbose linkBins [email protected]
172 verbose linkMans [email protected]
173 verbose rebuildBundles [email protected]
174 info install [email protected]
175 info postinstall [email protected]
176 verbose about to build C:\Users\pmverma\node_modules\sleep
177 info build C:\Users\pmverma\node_modules\sleep
178 verbose linkStuff [ false, false, false, 'C:\Users\pmverma\node_modules' ]
179 info linkStuff [email protected]
180 verbose linkBins [email protected]
181 verbose linkMans [email protected]
182 verbose rebuildBundles [email protected]
183 verbose rebuildBundles [ 'mkdirp' ]
184 info install [email protected]
185 verbose unsafe-perm in lifecycle true
186 info [email protected] Failed to exec install script
187 info C:\Users\pmverma\node_modules\sleep unbuild
188 info preuninstall [email protected]
189 info uninstall [email protected]
190 verbose true,C:\Users\pmverma\node_modules,C:\Users\pmverma\node_modules unbuild [email protected]
191 info postuninstall [email protected]
192 error [email protected] install: node build.js || nodejs build.js
192 error Exit status 1
193 error Failed at the [email protected] install script.
193 error This is most likely a problem with the sleep package,
193 error not with npm itself.
193 error Tell the author that this fails on your system:
193 error node build.js || nodejs build.js
193 error You can get their info via:
193 error npm owner ls sleep
193 error There is likely additional logging output above.
194 error System Windows_NT 6.1.7600
195 error command "C:\Program Files\Bitnami Node.js Stack\nodejs\node.exe" "C:\Program Files\Bitnami Node.js Stack\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sleep"
196 error cwd C:\Users\pmverma
197 error node -v v0.10.31
198 error npm -v 1.4.3
199 error code ELIFECYCLE
200 verbose exit [ 1, true ]

Does not build because of release of nan 2.0.0

npm install [email protected]
Fails to build since [email protected] is released 4 days ago.

A snippet of the error log

  CXX(target) Release/obj.target/node_sleep/sleep.o
In file included from ../sleep.cc:2:0:
../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:1178:27: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
                           v8::String::REPLACE_INVALID_UTF8;
                           ^
../sleep.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Sleep(Nan::NAN_METHOD_ARGS_TYPE)’:
../sleep.cc:36:12: error: ‘NanScope’ was not declared in this scope
   NanScope();
            ^
../sleep.cc:38:7: error: ‘args’ was not declared in this scope
   if (args.Length() < 1 || !args[0]->IsUint32()) {
       ^
../sleep.cc:39:54: error: ‘NanThrowError’ was not declared in this scope
     return NanThrowError("Expected number of seconds");
                                                      ^
../sleep.cc:39:54: error: return-statement with a value, in function returning 'void' [-fpermissive]
../sleep.cc:42:9: error: ‘args’ was not declared in this scope
   sleep(args[0]->Uint32Value());
         ^
../sleep.cc:44:22: error: ‘NanReturnUndefined’ was not declared in this scope
   NanReturnUndefined();
                      ^
../sleep.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE USleep(Nan::NAN_METHOD_ARGS_TYPE)’:
../sleep.cc:48:12: error: ‘NanScope’ was not declared in this scope
   NanScope();
            ^
../sleep.cc:50:7: error: ‘args’ was not declared in this scope
   if (args.Length() < 1 || !args[0]->IsUint32()) {
       ^
../sleep.cc:51:59: error: ‘NanThrowError’ was not declared in this scope
     return NanThrowError("Expected number of microseconds");
                                                           ^
../sleep.cc:51:59: error: return-statement with a value, in function returning 'void' [-fpermissive]
../sleep.cc:54:10: error: ‘args’ was not declared in this scope
   usleep(args[0]->Uint32Value());
          ^
../sleep.cc:56:22: error: ‘NanReturnUndefined’ was not declared in this scope
   NanReturnUndefined();
                      ^
../sleep.cc: In function ‘void init(v8::Handle<v8::Object>)’:
../sleep.cc:61:16: error: ‘NanNew’ was not declared in this scope
   exports->Set(NanNew<String>("sleep"), NanNew<FunctionTemplate>(Sleep)->GetFunction());
                ^
../sleep.cc:61:29: error: expected primary-expression before ‘>’ token
   exports->Set(NanNew<String>("sleep"), NanNew<FunctionTemplate>(Sleep)->GetFunction());
                             ^
../sleep.cc:61:64: error: expected primary-expression before ‘>’ token
   exports->Set(NanNew<String>("sleep"), NanNew<FunctionTemplate>(Sleep)->GetFunction());
                                                                ^
../sleep.cc:61:74: error: request for member ‘GetFunction’ in ‘Sleep’, which is of non-class type ‘Nan::NAN_METHOD_RETURN_TYPE(Nan::NAN_METHOD_ARGS_TYPE) {aka void(const Nan::FunctionCallbackInfo<v8::Value>&)}’
   exports->Set(NanNew<String>("sleep"), NanNew<FunctionTemplate>(Sleep)->GetFunction());
                                                                          ^
../sleep.cc:62:29: error: expected primary-expression before ‘>’ token
   exports->Set(NanNew<String>("usleep"), NanNew<FunctionTemplate>(USleep)->GetFunction());
                             ^
../sleep.cc:62:65: error: expected primary-expression before ‘>’ token
   exports->Set(NanNew<String>("usleep"), NanNew<FunctionTemplate>(USleep)->GetFunction());
                                                                 ^
../sleep.cc:62:76: error: request for member ‘GetFunction’ in ‘USleep’, which is of non-class type ‘Nan::NAN_METHOD_RETURN_TYPE(Nan::NAN_METHOD_ARGS_TYPE) {aka void(const Nan::FunctionCallbackInfo<v8::Value>&)}’
   exports->Set(NanNew<String>("usleep"), NanNew<FunctionTemplate>(USleep)->GetFunction());
                                                                            ^
make: *** [Release/obj.target/node_sleep/sleep.o] Fout 1

npm install [email protected]

Did not work either

  CXX(target) Release/obj.target/node_sleep/sleep.o
In file included from ../sleep.cc:2:0:
../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:1178:27: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
                           v8::String::REPLACE_INVALID_UTF8;
                           ^
make: *** [Release/obj.target/node_sleep/sleep.o] Fout 1

Installation Issue in Windows 7 32 bit machine

While installing
npm sleep following error is displayed

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

[email protected] install C:\Users\Gopal\Desktop\penseive\node_modules\sleep
node build.js || nodejs build.js

C:\Users\Gopal\Desktop\penseive\node_modules\sleep>node "C:\Program Files\nodejs
\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js"
rebuild sleep
gyp ERR! configure error
gyp ERR! stack Error: Command failed:
gyp ERR! stack at ChildProcess.exithandler (child_process.js:648:15)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at maybeClose (child_process.js:756:16)
gyp ERR! stack at Socket. (child_process.js:969:11)
gyp ERR! stack at Socket.emit (events.js:95:17)
gyp ERR! stack at Pipe.close (net.js:465:12)
gyp ERR! System Windows_NT 6.1.7600
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\Gopal\Desktop\penseive\node_modules\sleep
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
[sleep]: Error: Failed to execute 'node-gyp.cmd rebuild sleep' (1)
'nodejs' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! [email protected] install: node build.js || nodejs build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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.7600
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\Gopal\Desktop\penseive
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Gopal\Desktop\penseive\npm-debug.log
npm ERR! not ok code 0

Problems with installation of node-sleep

when trying to install sleep I get the following messages:

[ubuntu@ip-172-31-45-105:~/bitstarter]$npm install sleep
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/sleep
npm http 304 https://registry.npmjs.org/sleep
npm WARN package.json [email protected] 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/mkdirp

[email protected] install /home/ubuntu/bitstarter/node_modules/sleep
node build.js || nodejs build.js

make: Entering directory /home/ubuntu/bitstarter/node_modules/sleep/build' CXX(target) Release/obj.target/node_sleep/sleep.o SOLINK_MODULE(target) Release/obj.target/node_sleep.node SOLINK_MODULE(target) Release/obj.target/node_sleep.node: Finished COPY Release/node_sleep.node make: Leaving directory/home/ubuntu/bitstarter/node_modules/sleep/build'
[sleep]: Created: lib/binding/Release/node-v11-linux-x64
[sleep]: Installed in lib/binding/Release/node-v11-linux-x64/node_sleep.node
[email protected] node_modules/sleep
└── [email protected]

Then when trying to list my modules I get the following:

[ubuntu@ip-172-31-45-105:~/bitstarter]$npm ls
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
[email protected] /home/ubuntu/bitstarter
├── [email protected] extraneous
├── UNMET DEPENDENCY express ~3.3.4
├── [email protected] extraneous
├─┬ [email protected] extraneous
│ └── [email protected]
├── [email protected] extraneous
└─┬ [email protected] extraneous
└── [email protected]

npm ERR! missing: express@~3.3.4, required by [email protected]
npm ERR! extraneous: [email protected] /home/ubuntu/bitstarter/node_modules/async
npm ERR! extraneous: [email protected] /home/ubuntu/bitstarter/node_modules/restler
npm ERR! extraneous: [email protected] /home/ubuntu/bitstarter/node_modules/underscore
npm ERR! extraneous: [email protected] /home/ubuntu/bitstarter/node_modules/sleep
npm ERR! extraneous: [email protected] /home/ubuntu/bitstarter/node_modules/util
npm ERR! not ok code 0

And when I trying to run some code that uses sleep I get the following:
node synchronous-ex.js
Synchronous start at Sun Dec 15 2013 02:27:18 GMT+0000 (UTC)
http://www.bing.com/search?q=0 start at Sun Dec 15 2013 02:27:18 GMT+0000 (UTC)

/home/ubuntu/bitstarter/synchronous-ex.js:122
sleep.usleep(delay_us);
^
TypeError: Expected number of micro
at synchronous_mock_download (/home/ubuntu/bitstarter/synchronous-ex.js:122:11)
at synchronous_example (/home/ubuntu/bitstarter/synchronous-ex.js:137:15)
at main (/home/ubuntu/bitstarter/synchronous-ex.js:213:5)
at Object. (/home/ubuntu/bitstarter/synchronous-ex.js:217:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)

I'm happy to provide the synchronous-ex.js file if necessary.
Any pointers?

node-gyp rebuild

Hey there -

I'm on:

  • node 4.4.0
  • npm 2.14.20
  • Mac OS 10.11.1

In the terminal, when I run sudo npm install sleep, I get the following error. Thanks! - Floyd

Failed at the [email protected] install script 'node-gyp rebuild'.
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-gyp rebuild

Doesn't compile with Node 0.11.8

This package does not compile on my server where Node 0.11.8 is installed.
Here is the relevant error message:

  CXX(target) Release/obj.target/node_sleep/sleep.o
../sleep.cc:36:27: error: 'Arguments' does not name a type
../sleep.cc:36:38: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
../sleep.cc: In function 'v8::Handle<v8::Value> Sleep(const int&)':
../sleep.cc:37:15: error: no matching function for call to 'v8::HandleScope::HandleScope()'
../sleep.cc:37:15: note: candidates are:
/home/deploy/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/deploy/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/home/deploy/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
/home/deploy/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../sleep.cc:39:12: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../sleep.cc:39:35: error: invalid types 'const int[int]' for array subscript
../sleep.cc:43:15: error: invalid types 'const int[int]' for array subscript
../sleep.cc: At global scope:
../sleep.cc:48:28: error: 'Arguments' does not name a type
../sleep.cc:48:39: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
../sleep.cc: In function 'v8::Handle<v8::Value> USleep(const int&)':
../sleep.cc:49:15: error: no matching function for call to 'v8::HandleScope::HandleScope()'
../sleep.cc:49:15: note: candidates are:
/home/deploy/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/deploy/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/home/deploy/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
/home/deploy/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../sleep.cc:51:12: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../sleep.cc:51:35: error: invalid types 'const int[int]' for array subscript
../sleep.cc:55:16: error: invalid types 'const int[int]' for array subscript
../sleep.cc: In function 'void init(v8::Handle<v8::Object>)':
../sleep.cc:62:41: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [6], v8::Handle<v8::Value> (&)(const int&))'
../sleep.cc:62:41: note: candidate is: 
/home/deploy/.node-gyp/0.11.8/src/node.h:140:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
../sleep.cc:63:43: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [7], v8::Handle<v8::Value> (&)(const int&))'
../sleep.cc:63:43: note: candidate is: 
/home/deploy/.node-gyp/0.11.8/src/node.h:140:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
make: *** [Release/obj.target/node_sleep/sleep.o] Error 1

Compile issue on Windows 8: Cannot open include file: 'qos.h'

This seemed like a unique compile time issue on Windows 8. This is occurring with Node v0.10.28. The same issue also occurs when I upgrade to v0.10.32.

C:\Users\Joey\Documents\GitHub\mobileapp\native>npm install -g sleep
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

> [email protected] install C:\Users\Joey\AppData\Roaming\npm\node_modules\sleep
> node build.js || nodejs build.js


C:\Users\Joey\AppData\Roaming\npm\node_modules\sleep>node "C:\Program Files
\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-
gyp.js" rebuild --global sleep
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
  sleep.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error
 C1083: Cannot open include file: 'qos.h': No such file or directory [C:\Users\
Joey\AppData\Roaming\npm\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:807:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild" "--global" "sleep"
gyp ERR! cwd C:\Users\Joey\AppData\Roaming\npm\node_modules\sleep
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
[sleep]: Error: Failed to execute 'node-gyp.cmd rebuild --global sleep' (1)
'nodejs' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! [email protected] install: `node build.js || nodejs build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "sleep"
npm ERR! cwd C:\Users\Joey\Documents\GitHub\mobileapp\native
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Joey\Documents\GitHub\mobileapp\native\npm-debug.log
npm ERR! not ok code 0

C:\Users\Joey\Documents\GitHub\mobileapp\native>

install errror!

Registry url: https://registry.npmjs.org/
Current Time: 28.05.2015 18:59:09
Last Refreshed: 14.05.2015 19:40:52
Number of Results: 157348
====Executing command 'npm install sleep --save '====

npm WARN package.json [email protected] No repository field.

[email protected] install C:\Users\Jenok\Documents\Visual Studio 2013\Projects\NodejsWebApp3\NodejsWebApp3\node_modules\sleep
node-gyp rebuild
C:\Users\Jenok\Documents\Visual Studio 2013\Projects\NodejsWebApp3\NodejsWebApp3\node_modules\sleep>if not defined npm_config_node_gyp (node "C:\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (C:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at C:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Jenok\Documents\Visual Studio 2013\Projects\NodejsWebApp3\NodejsWebApp3\node_modules\sleep
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\nodejs\node.exe" "C:\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sleep" "--save"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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-gyp rebuild
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! Please include the following file with any support request:
npm ERR! C:\Users\Jenok\Documents\Visual Studio 2013\Projects\NodejsWebApp3\NodejsWebApp3\npm-debug.log

====npm command completed with exit code 1====

npm install 1.1.8 on OSx Yosemite 10.10.2 fails

Hey guys,

I'm having issues executing the following command: npm install [email protected].

Just for clarification, if I download the package itself and execute node build.js, eveything works wonderfully. Also, sleep 2.0.0 installs correctly but I need 1.1.8 :(

Thanks a lot!

0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli '/Users/groupon/.nvm/v0.10.26/bin/npm',
1 verbose cli 'install',
1 verbose cli '[email protected]' ]
2 info using [email protected]
3 info using [email protected]
4 silly cache add args [ '[email protected]', null ]
5 verbose cache add spec [email protected]
6 silly cache add parsed spec { raw: '[email protected]',
6 silly cache add scope: null,
6 silly cache add name: 'sleep',
6 silly cache add rawSpec: '1.1.8',
6 silly cache add spec: '1.1.8',
6 silly cache add type: 'version' }
7 verbose addNamed [email protected]
8 silly addNamed semver.valid 1.1.8
9 silly addNamed semver.validRange 1.1.8
10 silly mapToRegistry name sleep
11 silly mapToRegistry using default registry
12 silly mapToRegistry registry https://registry.npmjs.org/
13 silly mapToRegistry uri https://registry.npmjs.org/sleep
14 verbose addNameVersion registry:https://registry.npmjs.org/sleep not in flight; fetching
15 verbose request uri https://registry.npmjs.org/sleep
16 verbose request no auth needed
17 info attempt registry request try #1 at 19:50:53
18 verbose request id b1664a9ac53dcbba
19 verbose etag "BJUUZXE2ZJF3WW9XN9QLD1QP9"
20 http request GET https://registry.npmjs.org/sleep
21 http 304 https://registry.npmjs.org/sleep
22 silly get cb [ 304,
22 silly get { date: 'Sun, 05 Apr 2015 22:50:54 GMT',
22 silly get server: 'Apache',
22 silly get via: '1.1 varnish',
22 silly get 'last-modified': 'Sun, 05 Apr 2015 22:50:54 GMT',
22 silly get 'cache-control': 'max-age=60',
22 silly get etag: '"BJUUZXE2ZJF3WW9XN9QLD1QP9"',
22 silly get age: '0',
22 silly get 'x-served-by': 'cache-ord1727-ORD',
22 silly get 'x-cache': 'HIT',
22 silly get 'x-cache-hits': '1',
22 silly get 'x-timer': 'S1428274254.487780,VS0,VE38',
22 silly get vary: 'Accept',
22 silly get 'content-length': '0',
22 silly get 'keep-alive': 'timeout=10, max=50',
22 silly get connection: 'Keep-Alive' } ]
23 verbose etag https://registry.npmjs.org/sleep from cache
24 verbose get saving sleep to /Users/groupon/.npm/registry.npmjs.org/sleep/.cache.json
25 silly cache afterAdd [email protected]
26 verbose afterAdd /Users/groupon/.npm/sleep/1.1.8/package/package.json not in flight; writing
27 verbose afterAdd /Users/groupon/.npm/sleep/1.1.8/package/package.json written
28 silly install resolved [ { name: 'sleep',
28 silly install resolved version: '1.1.8',
28 silly install resolved main: './lib/index.js',
28 silly install resolved description: 'Add sleep() and usleep() to nodejs',
28 silly install resolved homepage: 'http://github.com/ErikDubbelboer/node-sleep',
28 silly install resolved author: { name: 'Erik Dubbelboer', email: '[email protected]' },
28 silly install resolved engines: { node: '>=0.4.0' },
28 silly install resolved keywords: [ 'sleep', 'usleep' ],
28 silly install resolved repository:
28 silly install resolved { type: 'git',
28 silly install resolved url: 'https://github.com/ErikDubbelboer/node-sleep.git' },
28 silly install resolved dependencies: { mkdirp: '~0.3.5' },
28 silly install resolved scripts: { install: 'node build.js || nodejs build.js' },
28 silly install resolved gypfile: true,
28 silly install resolved bugs: { url: 'https://github.com/ErikDubbelboer/node-sleep/issues' },
28 silly install resolved _id: '[email protected]',
28 silly install resolved _shasum: '4848862b234cff3352a80263e46f4b2e27ad5b53',
28 silly install resolved _from: '[email protected]',
28 silly install resolved _npmVersion: '1.4.9',
28 silly install resolved _npmUser: { name: 'erikdubbelboer', email: '[email protected]' },
28 silly install resolved maintainers: [ [Object] ],
28 silly install resolved dist:
28 silly install resolved { shasum: '4848862b234cff3352a80263e46f4b2e27ad5b53',
28 silly install resolved tarball: 'http://npm-registry.snc1/package/sleep-1.1.8.tgz' },
28 silly install resolved directories: {},
28 silly install resolved _resolved: 'http://npm-registry.snc1/package/sleep-1.1.8.tgz',
28 silly install resolved readme: 'ERROR: No README data found!' } ]
29 info install [email protected] into /Users/groupon/Downloads/sleep
30 info installOne [email protected]
31 verbose installOne of sleep to /Users/groupon/Downloads/sleep not in flight; installing
32 warn locking Error: EACCES, open '/Users/groupon/.npm/_locks/sleep-0d821d81675885ed.lock'
32 warn locking /Users/groupon/.npm/_locks/sleep-0d821d81675885ed.lock failed { [Error: EACCES, open '/Users/groupon/.npm/_locks/sleep-0d821d81675885ed.lock']
32 warn locking errno: 3,
32 warn locking code: 'EACCES',
32 warn locking path: '/Users/groupon/.npm/_locks/sleep-0d821d81675885ed.lock' }
33 verbose stack Error: Attempt to unlock /Users/groupon/Downloads/sleep/node_modules/sleep, which hasn't been locked
33 verbose stack at unlock (/Users/groupon/.nvm/v0.10.26/lib/node_modules/npm/lib/utils/locker.js:66:11)
33 verbose stack at cb (/Users/groupon/.nvm/v0.10.26/lib/node_modules/npm/lib/install.js:1004:5)
33 verbose stack at /Users/groupon/.nvm/v0.10.26/lib/node_modules/npm/lib/install.js:1008:20
33 verbose stack at /Users/groupon/.nvm/v0.10.26/lib/node_modules/npm/lib/utils/locker.js:40:9
33 verbose stack at cb (/Users/groupon/.nvm/v0.10.26/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)
33 verbose stack at /Users/groupon/.nvm/v0.10.26/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38
33 verbose stack at Object.oncomplete (fs.js:107:15)
34 verbose cwd /Users/groupon/Downloads/sleep
35 error Darwin 14.1.0
36 error argv "node" "/Users/groupon/.nvm/v0.10.26/bin/npm" "install" "[email protected]"
37 error node v0.10.26
38 error npm v2.7.4
39 error Attempt to unlock /Users/groupon/Downloads/sleep/node_modules/sleep, which hasn't been locked
40 error If you need help, you may report this error at:
40 error https://github.com/npm/npm/issues
41 verbose exit [ 1, true ]

Install fails on Raspbian

My develop enviroment is following.

  • rasbian 3.12.28+ armv6l
  • Node.js v0.10.24

I encountered following error, when i try to install "sleep" from npm.

root@raspberrypi:/home/pi/node/test# npm install sleep
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

> [email protected] install /home/pi/node/test/node_modules/sleep
> node build.js || nodejs build.js

gyp ERR! configure error 
gyp ERR! stack Error: Command failed: Traceback (most recent call last):
gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 562, in <module>
gyp ERR! stack     main()
gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 544, in main
gyp ERR! stack     known_paths = addusersitepackages(known_paths)
gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages
gyp ERR! stack     user_site = getusersitepackages()
gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages
gyp ERR! stack     user_base = getuserbase() # this will also set USER_BASE
gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 236, in getuserbase
gyp ERR! stack     USER_BASE = get_config_var('userbase')
gyp ERR! stack   File "/usr/lib/python2.7/sysconfig.py", line 591, in get_config_var
gyp ERR! stack     return get_config_vars().get(name)
gyp ERR! stack   File "/usr/lib/python2.7/sysconfig.py", line 495, in get_config_vars
gyp ERR! stack     _CONFIG_VARS['userbase'] = _getuserbase()
gyp ERR! stack   File "/usr/lib/python2.7/sysconfig.py", line 206, in _getuserbase
gyp ERR! stack     return env_base if env_base else joinuser("~", ".local")
gyp ERR! stack   File "/usr/lib/python2.7/sysconfig.py", line 192, in joinuser
gyp ERR! stack     return os.path.expanduser(os.path.join(*args))
gyp ERR! stack   File "/usr/lib/python2.7/posixpath.py", line 269, in expanduser
gyp ERR! stack     userhome = pwd.getpwuid(os.getuid()).pw_dir
gyp ERR! stack KeyError: 'getpwuid(): uid not found: 501'
gyp ERR! stack 
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:637:15)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at maybeClose (child_process.js:743:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:5)
gyp ERR! System Linux 3.6.11+
gyp ERR! command "node" "/usr/local/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "sleep"
gyp ERR! cwd /home/pi/node/test/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 rebuild sleep' (1)
sh: 1: nodejs: not found
npm ERR! [email protected] install: `node build.js || nodejs build.js`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the [email protected] 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 Linux 3.6.11+
npm ERR! command "/usr/local/node/bin/node" "/usr/local/node/bin/npm" "install" "sleep"
npm ERR! cwd /home/pi/node/test
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!     /home/pi/node/test/npm-debug.log
npm ERR! not ok code 0

node-gyb build error

I can't get sleep 2.0.0 to build for me on Linux, using iojs v3.0.0, npm v2.13.3

11722 info [email protected] Failed to exec install script
11723 verbose unlock done using /root/.npm/_locks/sleep-4f0ddb4b7a9c428a.lock for /usr/local/lib/mdf/node_modules/sleep
11724 verbose stack Error: [email protected] install: `node-gyp rebuild`
11724 verbose stack Exit status 1
11724 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
11724 verbose stack     at emitTwo (events.js:87:13)
11724 verbose stack     at EventEmitter.emit (events.js:172:7)
11724 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
11724 verbose stack     at emitTwo (events.js:87:13)
11724 verbose stack     at ChildProcess.emit (events.js:172:7)
11724 verbose stack     at maybeClose (internal/child_process.js:764:16)
11724 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
11725 verbose pkgid [email protected]
11726 verbose cwd /usr/local/lib/mdf
11727 error Linux 3.13.0-61-generic
11728 error argv "/usr/bin/iojs" "/usr/bin/npm" "install" "--production" "--unsafe-perm"
11729 error node v3.0.0
11730 error npm  v2.13.3
11731 error code ELIFECYCLE
11732 error [email protected] install: `node-gyp rebuild`
11732 error Exit status 1
11733 error Failed at the [email protected] install script 'node-gyp rebuild'.
11733 error This is most likely a problem with the sleep package,
11733 error not with npm itself.
11733 error Tell the author that this fails on your system:
11733 error     node-gyp rebuild
11733 error You can get their info via:
11733 error     npm owner ls sleep
11733 error There is likely additional logging output above.
11734 verbose exit [ 1, true ]
11735 verbose unbuild node_modules/sleep
11736 info preuninstall [email protected]
11737 info uninstall [email protected]
11738 verbose unbuild rmStuff [email protected] from /usr/local/lib/mdf/node_modules
11739 info postuninstall [email protected]
11740 silly gentlyRm /usr/local/lib/mdf/node_modules/sleep is being purged from base /usr/local/lib/mdf
11741 verbose gentlyRm don't care about contents; nuking /usr/local/lib/mdf/node_modules/sleep
11742 silly vacuum-fs purging /usr/local/lib/mdf/node_modules/sleep
11743 silly vacuum-fs quitting because other entries in /usr/local/lib/mdf/node_modules

License?

Can you add a license file to your repo please?

npm install sleep error

Building on windows server 2012, getting this error

C:\Users\me\nodejs\myapp\node_modules\sleep>node "C:\Users\me\AppData\Roaming\nvm\v0.10.35\node_modules\npm\bin\node
-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild sleep
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.

MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".

Use C++11 and chrono durations instead?

Forgive me if I'm crazy here as I've been out of the C++ world for quite some time now but, from what I've read today, I believe this module's C++ component could be greatly simplified cross-platform by compiling it with C++11 and using "chrono" durations.

Compiling Node native modules via node-gyp with C++11: http://blogs.encamina.com/returnvalue/2014/05/29/node-js-addons-c11/

Using "chrono" durations for cross-platform sleep: http://stackoverflow.com/a/11276503/471696

#include <chrono>
#include <thread>

std::this_thread::sleep_for(std::chrono::nanoseconds(ssec));   /* signed integer of 64+ bits */
std::this_thread::sleep_for(std::chrono::microseconds(usec));  /* signed integer of 55+ bits */
std::this_thread::sleep_for(std::chrono::milliseconds(ms));    /* signed integer of 45+ bits */
std::this_thread::sleep_for(std::chrono::seconds(sec));        /* signed integer of 35+ bits */
std::this_thread::sleep_for(std::chrono::minutes(min));        /* signed integer of 29+ bits */
std::this_thread::sleep_for(std::chrono::hours(hrs));          /* signed integer of 23+ bits */

Possible error in bin/sleep

from /bin/sleep:
if (argLen === 1 || argLen > 2) { console.log('usage: sleep seconds') }

that's nice but argv (at least on my system) is:
[ '/usr/bin/node', '/usr/bin/sleep', '10' ]
So normal argLen is 3

error installing on windows 7

I get an error when trying to install. see attached file.

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli   'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli   'i',
1 verbose cli   'sleep' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData sleep
8 silly fetchNamedPackageData sleep
9 silly mapToRegistry name sleep
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry   raw: 'sleep',
12 silly mapToRegistry   scope: null,
12 silly mapToRegistry   name: 'sleep',
12 silly mapToRegistry   rawSpec: '',
12 silly mapToRegistry   spec: 'latest',
12 silly mapToRegistry   type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/sleep
14 verbose request uri https://registry.npmjs.org/sleep
15 verbose request no auth needed
16 info attempt registry request try #1 at 8:30:12 AM
17 verbose request id fcb53ddf2f5fab37
18 verbose etag "7UE5RZDFRU0AIY0S9UE8EIEX1"
19 http request GET https://registry.npmjs.org/sleep
20 http 304 https://registry.npmjs.org/sleep
21 verbose headers { date: 'Mon, 16 May 2016 13:30:12 GMT',
21 verbose headers   via: '1.1 varnish',
21 verbose headers   'cache-control': 'max-age=300',
21 verbose headers   etag: '"7UE5RZDFRU0AIY0S9UE8EIEX1"',
21 verbose headers   age: '159',
21 verbose headers   connection: 'keep-alive',
21 verbose headers   'x-served-by': 'cache-dfw1833-DFW',
21 verbose headers   'x-cache': 'HIT',
21 verbose headers   'x-cache-hits': '1',
21 verbose headers   'x-timer': 'S1463405412.391204,VS0,VE0',
21 verbose headers   vary: 'Accept-Encoding' }
22 silly get cb [ 304,
22 silly get   { date: 'Mon, 16 May 2016 13:30:12 GMT',
22 silly get     via: '1.1 varnish',
22 silly get     'cache-control': 'max-age=300',
22 silly get     etag: '"7UE5RZDFRU0AIY0S9UE8EIEX1"',
22 silly get     age: '159',
22 silly get     connection: 'keep-alive',
22 silly get     'x-served-by': 'cache-dfw1833-DFW',
22 silly get     'x-cache': 'HIT',
22 silly get     'x-cache-hits': '1',
22 silly get     'x-timer': 'S1463405412.391204,VS0,VE0',
22 silly get     vary: 'Accept-Encoding' } ]
23 verbose etag https://registry.npmjs.org/sleep from cache
24 verbose get saving sleep to C:\Users\mduran\AppData\Roaming\npm-cache\registry.npmjs.org\sleep.cache.json
25 verbose correctMkdir C:\Users\mduran\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
26 silly install normalizeTree
27 silly loadCurrentTree Finishing
28 silly loadIdealTree Starting
29 silly install loadIdealTree
30 silly cloneCurrentTree Starting
31 silly install cloneCurrentTreeToIdealTree
32 silly cloneCurrentTree Finishing
33 silly loadShrinkwrap Starting
34 silly install loadShrinkwrap
35 silly loadShrinkwrap Finishing
36 silly loadAllDepsIntoIdealTree Starting
37 silly install loadAllDepsIntoIdealTree
38 silly resolveWithNewModule [email protected] checking installable status
39 silly cache add args [ 'sleep', null ]
40 verbose cache add spec sleep
41 silly cache add parsed spec Result {
41 silly cache add   raw: 'sleep',
41 silly cache add   scope: null,
41 silly cache add   name: 'sleep',
41 silly cache add   rawSpec: '',
41 silly cache add   spec: 'latest',
41 silly cache add   type: 'tag' }
42 silly addNamed sleep@latest
43 verbose addNamed "latest" is being treated as a dist-tag for sleep
44 info addNameTag [ 'sleep', 'latest' ]
45 silly mapToRegistry name sleep
46 silly mapToRegistry using default registry
47 silly mapToRegistry registry https://registry.npmjs.org/
48 silly mapToRegistry data Result {
48 silly mapToRegistry   raw: 'sleep',
48 silly mapToRegistry   scope: null,
48 silly mapToRegistry   name: 'sleep',
48 silly mapToRegistry   rawSpec: '',
48 silly mapToRegistry   spec: 'latest',
48 silly mapToRegistry   type: 'tag' }
49 silly mapToRegistry uri https://registry.npmjs.org/sleep
50 verbose addNameTag registry:https://registry.npmjs.org/sleep not in flight; fetching
51 verbose get https://registry.npmjs.org/sleep not expired, no request
52 silly addNameTag next cb for sleep with tag latest
53 silly addNamed [email protected]
54 verbose addNamed "3.0.1" is a plain semver version for sleep
55 silly cache afterAdd [email protected]
56 verbose afterAdd C:\Users\mduran\AppData\Roaming\npm-cache\sleep\3.0.1\package\package.json not in flight; writing
57 verbose correctMkdir C:\Users\mduran\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
58 verbose afterAdd C:\Users\mduran\AppData\Roaming\npm-cache\sleep\3.0.1\package\package.json written
59 silly fetchNamedPackageData nan
60 silly mapToRegistry name nan
61 silly mapToRegistry using default registry
62 silly mapToRegistry registry https://registry.npmjs.org/
63 silly mapToRegistry data Result {
63 silly mapToRegistry   raw: 'nan',
63 silly mapToRegistry   scope: null,
63 silly mapToRegistry   name: 'nan',
63 silly mapToRegistry   rawSpec: '',
63 silly mapToRegistry   spec: 'latest',
63 silly mapToRegistry   type: 'tag' }
64 silly mapToRegistry uri https://registry.npmjs.org/nan
65 verbose request uri https://registry.npmjs.org/nan
66 verbose request no auth needed
67 info attempt registry request try #1 at 8:30:12 AM
68 verbose etag "24B26O57Z0ASCDVIYEYKA8KVW"
69 http request GET https://registry.npmjs.org/nan
70 http 304 https://registry.npmjs.org/nan
71 verbose headers { date: 'Mon, 16 May 2016 13:30:12 GMT',
71 verbose headers   via: '1.1 varnish',
71 verbose headers   'cache-control': 'max-age=300',
71 verbose headers   etag: '"24B26O57Z0ASCDVIYEYKA8KVW"',
71 verbose headers   age: '17',
71 verbose headers   connection: 'keep-alive',
71 verbose headers   'x-served-by': 'cache-dfw1833-DFW',
71 verbose headers   'x-cache': 'HIT',
71 verbose headers   'x-cache-hits': '1',
71 verbose headers   'x-timer': 'S1463405412.503995,VS0,VE0',
71 verbose headers   vary: 'Accept-Encoding' }
72 silly get cb [ 304,
72 silly get   { date: 'Mon, 16 May 2016 13:30:12 GMT',
72 silly get     via: '1.1 varnish',
72 silly get     'cache-control': 'max-age=300',
72 silly get     etag: '"24B26O57Z0ASCDVIYEYKA8KVW"',
72 silly get     age: '17',
72 silly get     connection: 'keep-alive',
72 silly get     'x-served-by': 'cache-dfw1833-DFW',
72 silly get     'x-cache': 'HIT',
72 silly get     'x-cache-hits': '1',
72 silly get     'x-timer': 'S1463405412.503995,VS0,VE0',
72 silly get     vary: 'Accept-Encoding' } ]
73 verbose etag https://registry.npmjs.org/nan from cache
74 verbose get saving nan to C:\Users\mduran\AppData\Roaming\npm-cache\registry.npmjs.org\nan.cache.json
75 verbose correctMkdir C:\Users\mduran\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
76 silly resolveWithNewModule [email protected] checking installable status
77 silly cache add args [ 'nan@>=2.0.0', null ]
78 verbose cache add spec nan@>=2.0.0
79 silly cache add parsed spec Result {
79 silly cache add   raw: 'nan@>=2.0.0',
79 silly cache add   scope: null,
79 silly cache add   name: 'nan',
79 silly cache add   rawSpec: '>=2.0.0',
79 silly cache add   spec: '>=2.0.0',
79 silly cache add   type: 'range' }
80 silly addNamed nan@>=2.0.0
81 verbose addNamed ">=2.0.0" is a valid semver range for nan
82 silly addNameRange { name: 'nan', range: '>=2.0.0', hasData: false }
83 silly mapToRegistry name nan
84 silly mapToRegistry using default registry
85 silly mapToRegistry registry https://registry.npmjs.org/
86 silly mapToRegistry data Result {
86 silly mapToRegistry   raw: 'nan',
86 silly mapToRegistry   scope: null,
86 silly mapToRegistry   name: 'nan',
86 silly mapToRegistry   rawSpec: '',
86 silly mapToRegistry   spec: 'latest',
86 silly mapToRegistry   type: 'tag' }
87 silly mapToRegistry uri https://registry.npmjs.org/nan
88 verbose addNameRange registry:https://registry.npmjs.org/nan not in flight; fetching
89 verbose get https://registry.npmjs.org/nan not expired, no request
90 silly addNameRange number 2 { name: 'nan', range: '>=2.0.0', hasData: true }
91 silly addNameRange versions [ 'nan',
91 silly addNameRange   [ '0.3.0-wip',
91 silly addNameRange     '0.3.0-wip2',
91 silly addNameRange     '0.3.0',
91 silly addNameRange     '0.3.1',
91 silly addNameRange     '0.3.2',
91 silly addNameRange     '0.4.0',
91 silly addNameRange     '0.4.1',
91 silly addNameRange     '0.4.2',
91 silly addNameRange     '0.4.3',
91 silly addNameRange     '0.4.4',
91 silly addNameRange     '0.5.0',
91 silly addNameRange     '0.5.1',
91 silly addNameRange     '0.5.2',
91 silly addNameRange     '0.6.0',
91 silly addNameRange     '0.7.0',
91 silly addNameRange     '0.7.1',
91 silly addNameRange     '0.8.0',
91 silly addNameRange     '1.0.0',
91 silly addNameRange     '1.1.0',
91 silly addNameRange     '1.1.1',
91 silly addNameRange     '1.1.2',
91 silly addNameRange     '1.2.0',
91 silly addNameRange     '1.3.0',
91 silly addNameRange     '1.4.0',
91 silly addNameRange     '1.4.1',
91 silly addNameRange     '1.5.0',
91 silly addNameRange     '1.4.2',
91 silly addNameRange     '1.4.3',
91 silly addNameRange     '1.5.1',
91 silly addNameRange     '1.5.2',
91 silly addNameRange     '1.6.0',
91 silly addNameRange     '1.5.3',
91 silly addNameRange     '1.6.1',
91 silly addNameRange     '1.6.2',
91 silly addNameRange     '1.7.0',
91 silly addNameRange     '1.8.0',
91 silly addNameRange     '1.8.1',
91 silly addNameRange     '1.8.2',
91 silly addNameRange     '1.8.3',
91 silly addNameRange     '1.8.4',
91 silly addNameRange     '1.9.0',
91 silly addNameRange     '2.0.0',
91 silly addNameRange     '2.0.1',
91 silly addNameRange     '2.0.2',
91 silly addNameRange     '2.0.3',
91 silly addNameRange     '2.0.4',
91 silly addNameRange     '2.0.5',
91 silly addNameRange     '2.0.6',
91 silly addNameRange     '2.0.7',
91 silly addNameRange     '2.0.8',
91 silly addNameRange     '2.0.9',
91 silly addNameRange     '2.1.0',
91 silly addNameRange     '2.2.0',
91 silly addNameRange     '2.2.1',
91 silly addNameRange     '2.3.0',
91 silly addNameRange     '2.3.1',
91 silly addNameRange     '2.3.2',
91 silly addNameRange     '2.3.3' ] ]
92 silly addNamed [email protected]
93 verbose addNamed "2.3.3" is a plain semver version for nan
94 silly cache afterAdd [email protected]
95 verbose afterAdd C:\Users\mduran\AppData\Roaming\npm-cache\nan\2.3.3\package\package.json not in flight; writing
96 verbose correctMkdir C:\Users\mduran\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
97 verbose afterAdd C:\Users\mduran\AppData\Roaming\npm-cache\nan\2.3.3\package\package.json written
98 silly loadAllDepsIntoIdealTree Finishing
99 silly idealTree:prePrune [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune +-- [email protected]
99 silly idealTree:prePrune `-- [email protected]
100 silly loadIdealTree Finishing
101 silly currentTree [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree +-- [email protected]
101 silly currentTree`-- [email protected]
102 silly idealTree [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree +-- [email protected]
102 silly idealTree `-- [email protected]
103 silly generateActionsToTake Starting
104 silly install generateActionsToTake
105 silly generateActionsToTake Finishing
106 silly diffTrees action count 2
107 silly diffTrees add [email protected]
108 silly diffTrees add [email protected]
109 silly decomposeActions action count 16
110 silly decomposeActions fetch [email protected]
111 silly decomposeActions extract [email protected]
112 silly decomposeActions test [email protected]
113 silly decomposeActions preinstall [email protected]
114 silly decomposeActions build [email protected]
115 silly decomposeActions install [email protected]
116 silly decomposeActions postinstall [email protected]
117 silly decomposeActions finalize [email protected]
118 silly decomposeActions fetch [email protected]
119 silly decomposeActions extract [email protected]
120 silly decomposeActions test [email protected]
121 silly decomposeActions preinstall [email protected]
122 silly decomposeActions build [email protected]
123 silly decomposeActions install [email protected]
124 silly decomposeActions postinstall [email protected]
125 silly decomposeActions finalize [email protected]
126 silly executeActions Starting
127 silly install executeActions
128 silly doSerial global-install 0
129 silly doParallel fetch 2
130 verbose correctMkdir C:\Users\mduran\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
131 verbose lock using C:\Users\mduran\AppData\Roaming\npm-cache\_locks\staging-0e1892d8cb18f33a.lock for C:\MyProjects\node-demo\node_modules\.staging
132 silly doParallel extract 2
133 silly extract [email protected]
134 silly extract [email protected]
135 verbose unbuild node_modules\.staging\nan-94341a6e
136 verbose unbuild node_modules\.staging\sleep-3feb998d
137 silly gentlyRm C:\MyProjects\node-demo\node_modules\.staging\nan-94341a6e is being purged from base C:\MyProjects\node-demo
138 verbose gentlyRm don't care about contents; nuking C:\MyProjects\node-demo\node_modules\.staging\nan-94341a6e
139 silly gentlyRm C:\MyProjects\node-demo\node_modules\.staging\sleep-3feb998d is being purged from base C:\MyProjects\node-demo
140 verbose gentlyRm don't care about contents; nuking C:\MyProjects\node-demo\node_modules\.staging\sleep-3feb998d
141 verbose tar unpack C:\Users\mduran\AppData\Roaming\npm-cache\nan\2.3.3\package.tgz
142 verbose tar unpacking to C:\MyProjects\node-demo\node_modules\.staging\nan-94341a6e
143 silly gentlyRm C:\MyProjects\node-demo\node_modules\.staging\nan-94341a6e is being purged
144 verbose gentlyRm don't care about contents; nuking C:\MyProjects\node-demo\node_modules\.staging\nan-94341a6e
145 verbose tar unpack C:\Users\mduran\AppData\Roaming\npm-cache\sleep\3.0.1\package.tgz
146 verbose tar unpacking to C:\MyProjects\node-demo\node_modules\.staging\sleep-3feb998d
147 silly gentlyRm C:\MyProjects\node-demo\node_modules\.staging\sleep-3feb998d is being purged
148 verbose gentlyRm don't care about contents; nuking C:\MyProjects\node-demo\node_modules\.staging\sleep-3feb998d
149 silly gunzTarPerm modes [ '777', '666' ]
150 silly gunzTarPerm modes [ '777', '666' ]
151 silly gunzTarPerm extractEntry package.json
152 silly gunzTarPerm modified mode [ 'package.json', 436, 438 ]
153 silly gunzTarPerm extractEntry package.json
154 silly gunzTarPerm modified mode [ 'package.json', 436, 438 ]
155 silly gunzTarPerm extractEntry .npmignore
156 silly gunzTarPerm modified mode [ '.npmignore', 436, 438 ]
157 silly gunzTarPerm extractEntry README.md
158 silly gunzTarPerm modified mode [ 'README.md', 436, 438 ]
159 silly gunzTarPerm extractEntry README.md
160 silly gunzTarPerm modified mode [ 'README.md', 436, 438 ]
161 silly gunzTarPerm extractEntry include_dirs.js
162 silly gunzTarPerm modified mode [ 'include_dirs.js', 436, 438 ]
163 silly gunzTarPerm extractEntry index.js
164 silly gunzTarPerm modified mode [ 'index.js', 436, 438 ]
165 silly gunzTarPerm extractEntry test.js
166 silly gunzTarPerm modified mode [ 'test.js', 436, 438 ]
167 silly gunzTarPerm extractEntry nan_converters.h
168 silly gunzTarPerm modified mode [ 'nan_converters.h', 436, 438 ]
169 silly gunzTarPerm extractEntry LICENSE.md
170 silly gunzTarPerm modified mode [ 'LICENSE.md', 436, 438 ]
171 silly gunzTarPerm extractEntry doc/node_misc.md
172 silly gunzTarPerm modified mode [ 'doc/node_misc.md', 436, 438 ]
173 silly gunzTarPerm extractEntry doc/asyncworker.md
174 silly gunzTarPerm modified mode [ 'doc/asyncworker.md', 436, 438 ]
175 silly gunzTarPerm extractEntry LICENSE.txt
176 silly gunzTarPerm modified mode [ 'LICENSE.txt', 436, 438 ]
177 silly gunzTarPerm extractEntry binding.gyp
178 silly gunzTarPerm modified mode [ 'binding.gyp', 436, 438 ]
179 silly gunzTarPerm extractEntry doc/callback.md
180 silly gunzTarPerm modified mode [ 'doc/callback.md', 436, 438 ]
181 silly gunzTarPerm extractEntry doc/converters.md
182 silly gunzTarPerm modified mode [ 'doc/converters.md', 436, 438 ]
183 silly gunzTarPerm extractEntry sleep.cc
184 silly gunzTarPerm modified mode [ 'sleep.cc', 436, 438 ]
185 silly gunzTarPerm extractEntry doc/errors.md
186 silly gunzTarPerm modified mode [ 'doc/errors.md', 436, 438 ]
187 silly gunzTarPerm extractEntry doc/maybe_types.md
188 silly gunzTarPerm modified mode [ 'doc/maybe_types.md', 436, 438 ]
189 silly gunzTarPerm extractEntry doc/methods.md
190 silly gunzTarPerm modified mode [ 'doc/methods.md', 436, 438 ]
191 silly gunzTarPerm extractEntry doc/new.md
192 silly gunzTarPerm modified mode [ 'doc/new.md', 436, 438 ]
193 silly gunzTarPerm extractEntry doc/buffers.md
194 silly gunzTarPerm modified mode [ 'doc/buffers.md', 436, 438 ]
195 silly gunzTarPerm extractEntry doc/object_wrappers.md
196 silly gunzTarPerm modified mode [ 'doc/object_wrappers.md', 436, 438 ]
197 silly gunzTarPerm extractEntry doc/persistent.md
198 silly gunzTarPerm modified mode [ 'doc/persistent.md', 436, 438 ]
199 silly gunzTarPerm extractEntry doc/scopes.md
200 silly gunzTarPerm modified mode [ 'doc/scopes.md', 436, 438 ]
201 silly gunzTarPerm extractEntry doc/script.md
202 silly gunzTarPerm modified mode [ 'doc/script.md', 436, 438 ]
203 silly gunzTarPerm extractEntry doc/string_bytes.md
204 silly gunzTarPerm modified mode [ 'doc/string_bytes.md', 436, 438 ]
205 silly gunzTarPerm extractEntry doc/v8_internals.md
206 silly gunzTarPerm modified mode [ 'doc/v8_internals.md', 436, 438 ]
207 silly gunzTarPerm extractEntry doc/v8_misc.md
208 silly gunzTarPerm modified mode [ 'doc/v8_misc.md', 436, 438 ]
209 silly gentlyRm C:\MyProjects\node-demo\node_modules\.staging\sleep-3feb998d\node_modules is being purged
210 verbose gentlyRm don't care about contents; nuking C:\MyProjects\node-demo\node_modules\.staging\sleep-3feb998d\node_modules
211 silly gunzTarPerm extractEntry nan.h
212 silly gunzTarPerm modified mode [ 'nan.h', 436, 438 ]
213 silly gunzTarPerm extractEntry nan_callbacks.h
214 silly gunzTarPerm modified mode [ 'nan_callbacks.h', 436, 438 ]
215 silly gunzTarPerm extractEntry nan_callbacks_12_inl.h
216 silly gunzTarPerm modified mode [ 'nan_callbacks_12_inl.h', 436, 438 ]
217 silly gunzTarPerm extractEntry nan_callbacks_pre_12_inl.h
218 silly gunzTarPerm modified mode [ 'nan_callbacks_pre_12_inl.h', 436, 438 ]
219 silly gunzTarPerm extractEntry nan_converters_43_inl.h
220 silly gunzTarPerm modified mode [ 'nan_converters_43_inl.h', 436, 438 ]
221 silly gunzTarPerm extractEntry nan_converters_pre_43_inl.h
222 silly gunzTarPerm modified mode [ 'nan_converters_pre_43_inl.h', 436, 438 ]
223 silly gunzTarPerm extractEntry nan_implementation_12_inl.h
224 silly gunzTarPerm modified mode [ 'nan_implementation_12_inl.h', 436, 438 ]
225 silly gunzTarPerm extractEntry nan_implementation_pre_12_inl.h
226 silly gunzTarPerm modified mode [ 'nan_implementation_pre_12_inl.h', 436, 438 ]
227 silly gunzTarPerm extractEntry nan_maybe_43_inl.h
228 silly gunzTarPerm modified mode [ 'nan_maybe_43_inl.h', 436, 438 ]
229 silly gunzTarPerm extractEntry nan_maybe_pre_43_inl.h
230 silly gunzTarPerm modified mode [ 'nan_maybe_pre_43_inl.h', 436, 438 ]
231 silly gunzTarPerm extractEntry nan_new.h
232 silly gunzTarPerm modified mode [ 'nan_new.h', 436, 438 ]
233 silly gunzTarPerm extractEntry nan_object_wrap.h
234 silly gunzTarPerm modified mode [ 'nan_object_wrap.h', 436, 438 ]
235 silly gunzTarPerm extractEntry nan_persistent_12_inl.h
236 silly gunzTarPerm modified mode [ 'nan_persistent_12_inl.h', 436, 438 ]
237 silly gunzTarPerm extractEntry nan_persistent_pre_12_inl.h
238 silly gunzTarPerm modified mode [ 'nan_persistent_pre_12_inl.h', 436, 438 ]
239 silly gunzTarPerm extractEntry nan_string_bytes.h
240 silly gunzTarPerm modified mode [ 'nan_string_bytes.h', 436, 438 ]
241 silly gunzTarPerm extractEntry nan_typedarray_contents.h
242 silly gunzTarPerm modified mode [ 'nan_typedarray_contents.h', 436, 438 ]
243 silly gunzTarPerm extractEntry nan_weak.h
244 silly gunzTarPerm modified mode [ 'nan_weak.h', 436, 438 ]
245 silly gunzTarPerm extractEntry CHANGELOG.md
246 silly gunzTarPerm modified mode [ 'CHANGELOG.md', 436, 438 ]
247 silly gunzTarPerm extractEntry tools/package.json
248 silly gunzTarPerm modified mode [ 'tools/package.json', 436, 438 ]
249 silly gunzTarPerm extractEntry tools/README.md
250 silly gunzTarPerm modified mode [ 'tools/README.md', 436, 438 ]
251 silly gunzTarPerm extractEntry tools/1to2.js
252 silly gunzTarPerm modified mode [ 'tools/1to2.js', 509, 511 ]
253 silly gentlyRm C:\MyProjects\node-demo\node_modules\.staging\nan-94341a6e\node_modules is being purged
254 verbose gentlyRm don't care about contents; nuking C:\MyProjects\node-demo\node_modules\.staging\nan-94341a6e\node_modules
255 silly doParallel preinstall 2
256 silly preinstall [email protected] C:\MyProjects\node-demo\node_modules\.staging\nan-94341a6e
257 info lifecycle [email protected]~preinstall: [email protected]
258 silly preinstall [email protected] C:\MyProjects\node-demo\node_modules\.staging\sleep-3feb998d
259 info lifecycle [email protected]~preinstall: [email protected]
260 silly lifecycle [email protected]~preinstall: no script for preinstall, continuing
261 silly lifecycle [email protected]~preinstall: no script for preinstall, continuing
262 silly doReverseSerial remove 0
263 silly doSerial move 0
264 silly doSerial finalize 2
265 silly finalize C:\MyProjects\node-demo\node_modules\nan
266 silly finalize C:\MyProjects\node-demo\node_modules\sleep
267 silly doSerial build 2
268 silly build [email protected]
269 info linkStuff [email protected]
270 silly linkStuff [email protected] has C:\MyProjects\node-demo\node_modules as its parent node_modules
271 verbose linkBins [email protected]
272 verbose linkMans [email protected]
273 silly build [email protected]
274 info linkStuff [email protected]
275 silly linkStuff [email protected] has C:\MyProjects\node-demo\node_modules as its parent node_modules
276 verbose linkBins [email protected]
277 verbose linkMans [email protected]
278 silly doSerial global-link 0
279 silly doParallel update-linked 0
280 silly doSerial install 2
281 silly install [email protected] C:\MyProjects\node-demo\node_modules\.staging\nan-94341a6e
282 info lifecycle [email protected]~install: [email protected]
283 silly lifecycle [email protected]~install: no script for install, continuing
284 silly install [email protected] C:\MyProjects\node-demo\node_modules\.staging\sleep-3feb998d
285 info lifecycle [email protected]~install: [email protected]
286 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
287 verbose lifecycle [email protected]~install: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\MyProjects\node-demo\node_modules\sleep\node_modules\.bin;C:\MyProjects\node-demo\node_modules\.bin;C:\Program Files\nodejs;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\Mike\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Symantec.cloud\PlatformAgent\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\tools\python;C:\tools\python2;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files (x86)\Skype\Phone\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\Mike\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Symantec.cloud\PlatformAgent\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\tools\python;C:\Program Files\Git\cmd;C:\tools\python2;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Spoon\Cmd;C:\Users\mduran\AppData\Roaming\npm;C:\PROGRA~2\Oracle\VirtualBox;
288 verbose lifecycle [email protected]~install: CWD: C:\MyProjects\node-demo\node_modules\sleep
289 silly lifecycle [email protected]~install: Args: [ '/d /s /c', 'node-gyp rebuild' ]
290 silly lifecycle [email protected]~install: Returned: code: 1  signal: null
291 info lifecycle [email protected]~install: Failed to exec install script
292 verbose unlock done using C:\Users\mduran\AppData\Roaming\npm-cache\_locks\staging-0e1892d8cb18f33a.lock for C:\MyProjects\node-demo\node_modules\.staging
293 silly rollbackFailedOptional Starting
294 silly rollbackFailedOptional Finishing
295 silly runTopLevelLifecycles Starting
296 silly runTopLevelLifecycles Finishing
297 silly install printInstalled
298 warn [email protected] No description
299 warn [email protected] No repository field.
300 verbose stack Error: [email protected] install:`node-gyp rebuild`
300 verbose stack Exit status 1
300 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:239:16)
300 verbose stack     at emitTwo (events.js:106:13)
300 verbose stack     at EventEmitter.emit (events.js:191:7)
300 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
300 verbose stack     at emitTwo (events.js:106:13)
300 verbose stack     at ChildProcess.emit (events.js:191:7)
300 verbose stack     at maybeClose (internal/child_process.js:850:16)
300 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
301 verbose pkgid [email protected]
302 verbose cwd C:\MyProjects\node-demo
303 error Windows_NT 6.1.7601
304 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "sleep"
305 error node v6.1.0
306 error npm  v3.8.6
307 error code ELIFECYCLE
308 error [email protected] install:`node-gyp rebuild`
308 error Exit status 1
309 error Failed at the [email protected] install script 'node-gyp rebuild'.
309 error Make sure you have the latest version of node.js and npm installed.
309 error If you do, this is most likely a problem with the sleep package,
309 error not with npm itself.
309 error Tell the author that this fails on your system:
309 error     node-gyp rebuild
309 error You can get information on how to open an issue for this project with:
309 error     npm bugs sleep
309 error Or if that isn't available, you can get their info via:
309 error     npm owner ls sleep
309 error There is likely additional logging output above.
310 verbose exit [ 1, true ]

lack of release notes makes upgrade path unclear

I've stumbled upon a project that called for your node package at ~1.1.1

I now see you've got quite a few more versions beyond 1.x.x.. it would help to know which version supported what version of nodejs.. or what features / required upgrade path to take

in the end I just blindly upgraded to sleep@~3.0.0 and the project compiled fully with no errors

For reference , this is the project . https://github.com/kaosat-dev/adafruit-i2c-pwm-driver

I will attempt to PR my changes to that child project, but they may hesitate to accept it with no clear verification / knowledge of what's changed in 2 major releases

Install Fails

12508 error [email protected] install: node build.js || nodejs build.js
12508 error cmd "/c" "node build.js || nodejs build.js" failed with 1
12509 error Failed at the [email protected] install script.
12509 error This is most likely a problem with the sleep package,
12509 error not with npm itself.
12509 error Tell the author that this fails on your system:
12509 error node build.js || nodejs build.js
12509 error You can get their info via:
12509 error npm owner ls sleep
12509 error There is likely additional logging output above.
12510 error System Windows_NT 6.1.7601

npm install fails again

Seems a nan breaking change again:

$ npm install sleep
|
> [email protected] install /private/tmp/node_modules/sleep
> node-gyp rebuild

  CXX(target) Release/obj.target/node_sleep/sleep.o
In file included from ../sleep.cc:2:
In file included from ../node_modules/nan/nan.h:2104:
../node_modules/nan/nan_weak.h:363:42: error: cannot create a non-constant pointer to member function
    v8::PersistentBase<T>::SetWeak(wcbd, wcbd->invoke);
                                         ^~~~~~~~~~~~
../node_modules/nan/nan_object_wrap.h:56:18: note: in instantiation of function template specialization
      'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >::SetWeak<Nan::ObjectWrap>' requested here
    persistent().SetWeak(this, WeakCallback, WeakCallbackType::kParameter);
                 ^
In file included from ../sleep.cc:2:
In file included from ../node_modules/nan/nan.h:2104:
../node_modules/nan/nan_weak.h:378:42: error: cannot create a non-constant pointer to member function
    v8::PersistentBase<T>::SetWeak(wcbd, wcbd->invoke);
                                         ^~~~~~~~~~~~
2 errors generated.
make: *** [Release/obj.target/node_sleep/sleep.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/tmp/node_modules/sleep
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "sleep"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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-gyp rebuild
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! Please include the following file with any support request:
npm ERR!     /private/tmp/npm-debug.log
$ npm version
{ npm: '2.11.3',
  http_parser: '2.3',
  modules: '14',
  node: '0.12.7',
  openssl: '1.0.1p',
  uv: '1.6.1',
  v8: '3.28.71.19',
  zlib: '1.2.8' }

Mac OS 10.9.5

Install error windows x64

I have an error trying to install sleep.

c:>npm install sleep -g

[email protected] install C:\Users\kenneth\AppData\Roaming\npm\node_modules\sleep
node-gyp rebuild

C:\Users\kenneth\AppData\Roaming\npm\node_modules\sleep>if not defined npm_confi
g_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin..
..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
gyp ERR! configure error
gyp ERR! stack Error: spawn c:\python27 ENOENT
gyp ERR! stack at exports._errnoException (util.js:746:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1053
:32)
gyp ERR! stack at child_process.js:1144:20
gyp ERR! stack at process._tickCallback (node.js:355:11)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\kenneth\AppData\Roaming\npm\node_modules\sleep
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install" "sleep" "-g"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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-gyp rebuild
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! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install" "sleep" "-g"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4

npm ERR! Uncaught, unspecified "error" event.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! c:\npm-debug.log

The reason I even tried this is because of a related issue with installing the package for a workshopper called learnyoumongodb

npm install learnyoumongodb -g

gives me a similar error. both have the
error: spawn problem.

Thanks in advance for the help.

required package missing `block-stream`

while installing I get an error about missing module: block-stream

error does not resolve by installing the missing module locally.
but it does resolve by installing the missing module globally.

Either it should be packed in or specified as a peer dependency.

error:

> [email protected] install /Users/project/node_modules/sleep
> node-gyp rebuild

gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: Cannot find module 'block-stream'
gyp ERR! stack     at Function.Module._resolveFilename (module.js:455:15)
gyp ERR! stack     at Function.Module._load (module.js:403:25)
gyp ERR! stack     at Module.require (module.js:483:17)
gyp ERR! stack     at require (internal/module.js:20:19)
gyp ERR! stack     at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/node_modules/tar/lib/entry-writer.js:7:19)
gyp ERR! stack     at Module._compile (module.js:556:32)
gyp ERR! stack     at Object.Module._extensions..js (module.js:565:10)
gyp ERR! stack     at Module.load (module.js:473:32)
gyp ERR! stack     at tryModuleLoad (module.js:432:12)
gyp ERR! stack     at Function.Module._load (module.js:424:3)
gyp ERR! System Darwin 16.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/project/node_modules/sleep
gyp ERR! node -v v6.5.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     <https://github.com/nodejs/node-gyp/issues>
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
npm ERR! node v6.5.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

using the latest Node v6 and npm v3

npm install starts to fail

This just happened all of a sudden on Jul 31, 2015, I didn't see any change in node-sleep itself, nor there was any changes in the env. No idea how this happens:

$ npm install sleep
\
> [email protected] install /private/tmp/node_modules/sleep
> node-gyp rebuild

  CXX(target) Release/obj.target/node_sleep/sleep.o
../sleep.cc:36:3: error: use of undeclared identifier 'NanScope'
  NanScope();
  ^
../sleep.cc:38:7: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
  if (args.Length() < 1 || !args[0]->IsUint32()) {
      ^~~~
      uv_process_options_s::args
/Users/cchen21/.node-gyp/0.12.7/deps/uv/include/uv.h:857:10: note: 'uv_process_options_s::args' declared here
  char** args;
         ^
../sleep.cc:38:7: error: invalid use of non-static data member 'args'
  if (args.Length() < 1 || !args[0]->IsUint32()) {
      ^~~~
../sleep.cc:38:29: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
  if (args.Length() < 1 || !args[0]->IsUint32()) {
                            ^~~~
                            uv_process_options_s::args
/Users/cchen21/.node-gyp/0.12.7/deps/uv/include/uv.h:857:10: note: 'uv_process_options_s::args' declared here
  char** args;
         ^
../sleep.cc:38:29: error: invalid use of non-static data member 'args'
  if (args.Length() < 1 || !args[0]->IsUint32()) {
                            ^~~~
../sleep.cc:39:12: error: use of undeclared identifier 'NanThrowError'; did you mean 'Nan::ThrowError'?
    return NanThrowError("Expected number of seconds");
           ^~~~~~~~~~~~~
           Nan::ThrowError
../node_modules/nan/nan.h:631:3: note: 'Nan::ThrowError' declared here
  X(Error)
  ^
../node_modules/nan/nan.h:619:21: note: expanded from macro 'X'
    NAN_INLINE void Throw ## NAME(const char *msg) {                           \
                    ^
<scratch space>:94:1: note: expanded from here
ThrowError
^
../sleep.cc:42:9: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
  sleep(args[0]->Uint32Value());
        ^~~~
        uv_process_options_s::args
/Users/cchen21/.node-gyp/0.12.7/deps/uv/include/uv.h:857:10: note: 'uv_process_options_s::args' declared here
  char** args;
         ^
../sleep.cc:42:9: error: invalid use of non-static data member 'args'
  sleep(args[0]->Uint32Value());
        ^~~~
../sleep.cc:44:3: error: use of undeclared identifier 'NanReturnUndefined'
  NanReturnUndefined();
  ^
../sleep.cc:48:3: error: use of undeclared identifier 'NanScope'
  NanScope();
  ^
../sleep.cc:50:7: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
  if (args.Length() < 1 || !args[0]->IsUint32()) {
      ^~~~
      uv_process_options_s::args
/Users/cchen21/.node-gyp/0.12.7/deps/uv/include/uv.h:857:10: note: 'uv_process_options_s::args' declared here
  char** args;
         ^
../sleep.cc:50:7: error: invalid use of non-static data member 'args'
  if (args.Length() < 1 || !args[0]->IsUint32()) {
      ^~~~
../sleep.cc:50:29: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
  if (args.Length() < 1 || !args[0]->IsUint32()) {
                            ^~~~
                            uv_process_options_s::args
/Users/cchen21/.node-gyp/0.12.7/deps/uv/include/uv.h:857:10: note: 'uv_process_options_s::args' declared here
  char** args;
         ^
../sleep.cc:50:29: error: invalid use of non-static data member 'args'
  if (args.Length() < 1 || !args[0]->IsUint32()) {
                            ^~~~
../sleep.cc:51:12: error: use of undeclared identifier 'NanThrowError'; did you mean 'Nan::ThrowError'?
    return NanThrowError("Expected number of microseconds");
           ^~~~~~~~~~~~~
           Nan::ThrowError
../node_modules/nan/nan.h:631:3: note: 'Nan::ThrowError' declared here
  X(Error)
  ^
../node_modules/nan/nan.h:619:21: note: expanded from macro 'X'
    NAN_INLINE void Throw ## NAME(const char *msg) {                           \
                    ^
<scratch space>:94:1: note: expanded from here
ThrowError
^
../sleep.cc:54:10: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
  usleep(args[0]->Uint32Value());
         ^~~~
         uv_process_options_s::args
/Users/cchen21/.node-gyp/0.12.7/deps/uv/include/uv.h:857:10: note: 'uv_process_options_s::args' declared here
  char** args;
         ^
../sleep.cc:54:10: error: invalid use of non-static data member 'args'
  usleep(args[0]->Uint32Value());
         ^~~~
../sleep.cc:56:3: error: use of undeclared identifier 'NanReturnUndefined'
  NanReturnUndefined();
  ^
../sleep.cc:61:16: error: use of undeclared identifier 'NanNew'
  exports->Set(NanNew<String>("sleep"), NanNew<FunctionTemplate>(Sleep)->GetFunction());
               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/node_sleep/sleep.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/tmp/node_modules/sleep
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "sleep"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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-gyp rebuild
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! Please include the following file with any support request:
npm ERR!     /private/tmp/npm-debug.log

My npm setting:

$ npm version
{ npm: '2.11.3',
  http_parser: '2.3',
  modules: '14',
  node: '0.12.7',
  openssl: '1.0.1p',
  uv: '1.6.1',
  v8: '3.28.71.19',
  zlib: '1.2.8' }

Mac OS 10.9.5

node-gyp rebuild fails on Amazon Linux

The node-gyp rebuild command is failing for me on the latest Amazon Linux.

Node: 0.10.38
NPM: 2.13.3
"sleep" module: 2.0.0

> [email protected] install /var/lib/go-agent/pipelines/build.develop/edspring-operations/opsworks/em/node_modules/sleep
> node-gyp rebuild

make: Entering directory `/var/lib/go-agent/pipelines/build.develop/edspring-operations/opsworks/em/node_modules/sleep/build'
  CXX(target) Release/obj.target/node_sleep/sleep.o
../sleep.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE Sleep(Nan::NAN_METHOD_ARGS_TYPE)':
../sleep.cc:36:12: error: 'NanScope' was not declared in this scope
   NanScope();
            ^
../sleep.cc:38:7: error: 'args' was not declared in this scope
   if (args.Length() < 1 || !args[0]->IsUint32()) {
       ^
../sleep.cc:39:54: error: 'NanThrowError' was not declared in this scope
     return NanThrowError("Expected number of seconds");
                                                      ^
../sleep.cc:39:54: error: return-statement with a value, in function returning 'void' [-fpermissive]
../sleep.cc:42:9: error: 'args' was not declared in this scope
   sleep(args[0]->Uint32Value());
         ^
../sleep.cc:44:22: error: 'NanReturnUndefined' was not declared in this scope
   NanReturnUndefined();
                      ^
../sleep.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE USleep(Nan::NAN_METHOD_ARGS_TYPE)':
../sleep.cc:48:12: error: 'NanScope' was not declared in this scope
   NanScope();
            ^
../sleep.cc:50:7: error: 'args' was not declared in this scope
   if (args.Length() < 1 || !args[0]->IsUint32()) {
       ^
../sleep.cc:51:59: error: 'NanThrowError' was not declared in this scope
     return NanThrowError("Expected number of microseconds");
                                                           ^
../sleep.cc:51:59: error: return-statement with a value, in function returning 'void' [-fpermissive]
../sleep.cc:54:10: error: 'args' was not declared in this scope
   usleep(args[0]->Uint32Value());
          ^
../sleep.cc:56:22: error: 'NanReturnUndefined' was not declared in this scope
   NanReturnUndefined();
                      ^
../sleep.cc: In function 'void init(v8::Handle<v8::Object>)':
../sleep.cc:61:16: error: 'NanNew' was not declared in this scope
   exports->Set(NanNew<String>("sleep"), NanNew<FunctionTemplate>(Sleep)->GetFunction());
                ^
../sleep.cc:61:29: error: expected primary-expression before '>' token
   exports->Set(NanNew<String>("sleep"), NanNew<FunctionTemplate>(Sleep)->GetFunction());
                             ^
../sleep.cc:61:64: error: expected primary-expression before '>' token
   exports->Set(NanNew<String>("sleep"), NanNew<FunctionTemplate>(Sleep)->GetFunction());
                                                                ^
../sleep.cc:61:74: error: request for member 'GetFunction' in 'Sleep', which is of non-class type 'Nan::NAN_METHOD_RETURN_TYPE(Nan::NAN_METHOD_ARGS_TYPE) {aka void(const Nan::FunctionCallbackInfo<v8::Value>&)}'
   exports->Set(NanNew<String>("sleep"), NanNew<FunctionTemplate>(Sleep)->GetFunction());
                                                                          ^
../sleep.cc:62:29: error: expected primary-expression before '>' token
   exports->Set(NanNew<String>("usleep"), NanNew<FunctionTemplate>(USleep)->GetFunction());
                             ^
../sleep.cc:62:65: error: expected primary-expression before '>' token
   exports->Set(NanNew<String>("usleep"), NanNew<FunctionTemplate>(USleep)->GetFunction());
                                                                 ^
../sleep.cc:62:76: error: request for member 'GetFunction' in 'USleep', which is of non-class type 'Nan::NAN_METHOD_RETURN_TYPE(Nan::NAN_METHOD_ARGS_TYPE) {aka void(const Nan::FunctionCallbackInfo<v8::Value>&)}'
   exports->Set(NanNew<String>("usleep"), NanNew<FunctionTemplate>(USleep)->GetFunction());
                                                                            ^
make: *** [Release/obj.target/node_sleep/sleep.o] Error 1
make: Leaving directory `/var/lib/go-agent/pipelines/build.develop/edspring-operations/opsworks/em/node_modules/sleep/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/nodejs-binary-0.10.38/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.14.48-33.39.amzn1.x86_64
gyp ERR! command "node" "/usr/local/nodejs-binary-0.10.38/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/lib/go-agent/pipelines/build.develop/edspring-operations/opsworks/em/node_modules/sleep
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok 

npm ERR! Linux 3.14.48-33.39.amzn1.x86_64
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--cache-min=Infinity"
npm ERR! node v0.10.38
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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-gyp rebuild
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! Please include the following file with any support request:
npm ERR!     /var/lib/go-agent/pipelines/build.develop/edspring-operations/opsworks/em/npm-debug.log

install error

make: *** [Release/obj.target/node_sleep/sleep.o] 错误 1
make: Leaving directory `/data/mocker.qeeniao.com/node_modules/sleep/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/zhangdapeng/.nvm/versions/node/v0.12.4/lib/node_modules/cnpm/node_modules/pangyp/lib/build.js:271:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 2.6.32-504.8.1.el6.x86_64
gyp ERR! command "node" "/home/zhangdapeng/.nvm/versions/node/v0.12.4/lib/node_modules/cnpm/node_modules/pangyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/mocker.qeeniao.com/node_modules/sleep
gyp ERR! node -v v0.12.4
gyp ERR! pangyp -v v2.1.0
gyp ERR! not ok 
npm ERR! Linux 2.6.32-504.8.1.el6.x86_64
npm ERR! argv "node" "/home/zhangdapeng/.nvm/versions/node/v0.12.4/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/home/zhangdapeng/.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--cache=/home/zhangdapeng/.cnpm" "--registry=https://registry.npm.taobao.org" "--node-gyp=/home/zhangdapeng/.nvm/versions/node/v0.12.4/lib/node_modules/cnpm/node_modules/pangyp/bin/node-gyp.js" "install" "sleep" "--save"
npm ERR! node v0.12.4
npm ERR! npm  v2.7.6
npm ERR! code ELIFECYCLE

include pre compiled binaries

Hi! I noticed that installing sleep is one of the components that take more time in our application. Is there any possibilities of skipping compilation by including pre compiled binaries per platform?

Thanks!

100% CPU kernel utilization on Linux guest system

I have guest Linux system on Windows 7 host (VirtualBox).

uname -a
Linux whoisvolos-vm 3.2.0-53-generic-pae #81-Ubuntu SMP Thu Aug 22 21:23:47 UTC 2013 i686 i686 i386 GNU/Linux
node --version
v0.10.12

Sleep and usleep funcs eat 100% (kernel time) of one core. Does it fall under the definition of "Windows-while-loop" case?

npm install sleep gives error

[user@localhost nodejs]$ npm install sleep
npm http GET https://registry.npmjs.org/sleep
npm http 200 https://registry.npmjs.org/sleep
npm http GET https://registry.npmjs.org/sleep/-/sleep-1.1.3.tgz
npm http 200 https://registry.npmjs.org/sleep/-/sleep-1.1.3.tgz
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/mkdirp

[email protected] install /home/user/Desktop/nodejs/node_modules/sleep
node build.js || nodejs build.js

gyp http GET http://nodejs.org/dist/v0.10.23/node-v0.10.23.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.23/node-v0.10.23.tar.gz
Traceback (most recent call last):
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in
sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.9.5-301.fc19.i686
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "sleep"
gyp ERR! cwd /home/user/Desktop/nodejs/node_modules/sleep
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
[sleep]: Error: Failed to execute 'node-gyp rebuild sleep' (1)
sh: nodejs: command not found
npm ERR! [email protected] install: node build.js || nodejs build.js
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] 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 Linux 3.9.5-301.fc19.i686
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sleep"
npm ERR! cwd /home/user/Desktop/nodejs
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/user/Desktop/nodejs/npm-debug.log
npm ERR! not ok code 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.