Skip to content

Instantly share code, notes, and snippets.

@SomeoneWeird
Created July 3, 2014 16:27
Show Gist options
  • Save SomeoneWeird/902bbd139d3a7dcb7aa6 to your computer and use it in GitHub Desktop.
Save SomeoneWeird/902bbd139d3a7dcb7aa6 to your computer and use it in GitHub Desktop.
➜ /tmp goingnative verify
✓ Found usable `gcc` in $PATH: v5.1.0
✓ Found usable `python` in $PATH: v2.7.5
✗ `node-gyp` not found in $PATH
# FAIL
Your solution to AM I READY? didn't pass. Try again!
➜ /tmp npm install -g node-gyp
/usr/local/bin/node-gyp -> /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js
npm WARN unmet dependency /usr/local/lib/node_modules/slush-campjs-gulp requires gulp@'~3.6.2' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/gulp,
npm WARN unmet dependency which is version 3.7.0
npm WARN unmet dependency /usr/local/lib/node_modules/component/node_modules/cogent/node_modules/proxy-agent/node_modules/pac-proxy-agent/node_modules/pac-resolver/node_modules/regenerator requires commander@'~2.1.0' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/component/node_modules/commander,
npm WARN unmet dependency which is version 2.2.0
[email protected] /usr/local/lib/node_modules/node-gyp
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
➜ /tmp goingnative verify
✓ Found usable `gcc` in $PATH: v5.1.0
✓ Found usable `python` in $PATH: v2.7.5
✓ Found usable `node-gyp` in $PATH: v0.13.1
Running `node-gyp`, this may take a few minutes if it hasn't been run before...
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/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 '/private/tmp/~test-addon.561/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/adam/.node-gyp/0.10.29/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/adam/.node-gyp/0.10.29',
gyp info spawn args '-Dmodule_root_dir=/private/tmp/~test-addon.561',
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=.' ]
module.js:340
throw err;
^
Error: Cannot find module 'nan'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at [eval]:1:1
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:456:26)
at evalScript (node.js:536:25)
at startup (node.js:80:7)
at node.js:906:3
gyp: Call to 'node -e "require('nan')"' returned exit status 8. while trying to load binding.gyp
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/node-gyp/lib/configure.js:343:16)
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 Darwin 13.3.0
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /private/tmp/~test-addon.561
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
✗ Could not compile test addon
# FAIL
Your solution to AM I READY? didn't pass. Try again!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment