Skip to content

Instantly share code, notes, and snippets.

@menicosia
Created August 19, 2015 04:24
Show Gist options
  • Save menicosia/6ce6d8db8c28320a98e7 to your computer and use it in GitHub Desktop.
Save menicosia/6ce6d8db8c28320a98e7 to your computer and use it in GitHub Desktop.
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/local/bin/npm',
npm verb cli '--loglevel',
npm verb cli 'verbose',
npm verb cli 'install',
npm verb cli 'sleep' ]
npm info using npm@2.7.5
npm info using node@v0.12.2
npm verb node symlink /usr/local/bin/node
npm WARN package.json trivial-js@0.0.1 No README data
npm verb cache add spec sleep@2.0.0
npm verb addNamed sleep@2.0.0
npm verb addNameVersion registry:https://registry.npmjs.org/sleep not in flight; fetching
npm verb request uri https://registry.npmjs.org/sleep
npm verb request no auth needed
npm info attempt registry request try #1 at 21:22:21
npm verb request id 18201412c899b0b8
npm verb etag "2YRY2ZK71X1LQ2I8ZT1G4DZPN"
npm http request GET https://registry.npmjs.org/sleep
npm http 304 https://registry.npmjs.org/sleep
npm verb etag https://registry.npmjs.org/sleep from cache
npm verb get saving sleep to /Users/marco/.npm/registry.npmjs.org/sleep/.cache.json
npm verb afterAdd /Users/marco/.npm/sleep/2.0.0/package/package.json not in flight; writing
npm verb afterAdd /Users/marco/.npm/sleep/2.0.0/package/package.json written
npm info install sleep@2.0.0 into /Users/marco/workspace/trivial-js
npm info installOne sleep@2.0.0
npm verb installOne of sleep to /Users/marco/workspace/trivial-js not in flight; installing
npm verb lock using /Users/marco/.npm/_locks/sleep-dd5f8cf49628be36.lock for /Users/marco/workspace/trivial-js/node_modules/sleep
npm verb unbuild node_modules/sleep
npm verb gentlyRm don't care about contents; nuking /Users/marco/workspace/trivial-js/node_modules/sleep
npm verb tar unpack /Users/marco/.npm/sleep/2.0.0/package.tgz
npm verb tar unpacking to /Users/marco/workspace/trivial-js/node_modules/sleep
npm verb gentlyRm don't care about contents; nuking /Users/marco/workspace/trivial-js/node_modules/sleep
npm info preinstall sleep@2.0.0
npm verb about to build /Users/marco/workspace/trivial-js/node_modules/sleep
npm info build /Users/marco/workspace/trivial-js/node_modules/sleep
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/marco/workspace/trivial-js/node_modules' ]
npm info linkStuff sleep@2.0.0
npm verb linkBins sleep@2.0.0
npm verb linkMans sleep@2.0.0
npm verb rebuildBundles sleep@2.0.0
npm info install sleep@2.0.0
> sleep@2.0.0 install /Users/marco/workspace/trivial-js/node_modules/sleep
> node-gyp rebuild
gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using node-gyp@1.0.3
gyp info using node@0.12.2 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `python -c "import platform; print(platform.python_version());"` returned: "2.7.6\n"
gyp verb get node dir no --target version specified, falling back to host node version: v0.12.2
gyp verb command install [ 'v0.12.2' ]
gyp verb install input version string "v0.12.2"
gyp verb install installing version: 0.12.2
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.2
gyp verb build dir attempting to create "build" dir: /Users/marco/workspace/trivial-js/node_modules/sleep/build
gyp verb build dir "build" dir needed to be created? /Users/marco/workspace/trivial-js/node_modules/sleep/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/marco/workspace/trivial-js/node_modules/sleep/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/marco/workspace/trivial-js/node_modules/sleep/config.gypi
gyp verb common.gypi checking for gypi file: /Users/marco/workspace/trivial-js/node_modules/sleep/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/marco/workspace/trivial-js/node_modules/sleep/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/marco/.node-gyp/0.12.2/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/marco/.node-gyp/0.12.2',
gyp info spawn args '-Dmodule_root_dir=/Users/marco/workspace/trivial-js/node_modules/sleep',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /Users/marco/.node-gyp/0.12.2
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/marco/.node-gyp/0.12.2/src -I/Users/marco/.node-gyp/0.12.2/deps/uv/include -I/Users/marco/.node-gyp/0.12.2/deps/v8/include -I../../nan -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/node_sleep/sleep.o.d.raw -c -o Release/obj.target/node_sleep/sleep.o ../sleep.cc
../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/marco/.node-gyp/0.12.2/deps/uv/include/uv.h:846: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/marco/.node-gyp/0.12.2/deps/uv/include/uv.h:846: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
../../nan/nan.h:641:3: note: 'Nan::ThrowError' declared here
X(Error)
^
../../nan/nan.h:629:21: note: expanded from macro 'X'
NAN_INLINE void Throw ## NAME(const char *msg) { \
^
<scratch space>:154: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/marco/.node-gyp/0.12.2/deps/uv/include/uv.h:846: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/marco/.node-gyp/0.12.2/deps/uv/include/uv.h:846: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/marco/.node-gyp/0.12.2/deps/uv/include/uv.h:846: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
../../nan/nan.h:641:3: note: 'Nan::ThrowError' declared here
X(Error)
^
../../nan/nan.h:629:21: note: expanded from macro 'X'
NAN_INLINE void Throw ## NAME(const char *msg) { \
^
<scratch space>:154: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/marco/.node-gyp/0.12.2/deps/uv/include/uv.h:846: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 14.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/marco/workspace/trivial-js/node_modules/sleep
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm verb unsafe-perm in lifecycle true
npm info sleep@2.0.0 Failed to exec install script
npm verb unlock done using /Users/marco/.npm/_locks/sleep-dd5f8cf49628be36.lock for /Users/marco/workspace/trivial-js/node_modules/sleep
npm verb stack Error: sleep@2.0.0 install: `node-gyp rebuild`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
npm verb stack at EventEmitter.emit (events.js:110:17)
npm verb stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:14:12)
npm verb stack at ChildProcess.emit (events.js:110:17)
npm verb stack at maybeClose (child_process.js:1015:16)
npm verb stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
npm verb pkgid sleep@2.0.0
npm verb cwd /Users/marco/workspace/trivial-js
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "--loglevel" "verbose" "install" "sleep"
npm ERR! node v0.12.2
npm ERR! npm v2.7.5
npm ERR! code ELIFECYCLE
npm ERR! sleep@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sleep@2.0.0 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 verb exit [ 1, true ]
npm verb unbuild node_modules/sleep
npm info preuninstall sleep@2.0.0
npm info uninstall sleep@2.0.0
npm verb unbuild rmStuff sleep@2.0.0 from /Users/marco/workspace/trivial-js/node_modules
npm info postuninstall sleep@2.0.0
npm verb gentlyRm don't care about contents; nuking /Users/marco/workspace/trivial-js/node_modules/sleep
npm ERR! Please include the following file with any support request:
npm ERR! /Users/marco/workspace/trivial-js/npm-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment