Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dclarke-modus/ce5adea1a554d4f154e09996ff0f0593 to your computer and use it in GitHub Desktop.
Save dclarke-modus/ce5adea1a554d4f154e09996ff0f0593 to your computer and use it in GitHub Desktop.
$ npm install
> [email protected] preinstall /var/www/api/node_modules/extendr/node_modules/typechecker
> node ./cyclic.js
> [email protected] preinstall /var/www/api/node_modules/extract-opts/node_modules/typechecker
> node ./cyclic.js
npm WARN prefer global [email protected] should be installed with -g
> [email protected] install /var/www/api/node_modules/hiredis
> node-gyp rebuild
module.js:487
throw err;
^
Error: Cannot find module 'nan'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at [eval]:1:1
at ContextifyScript.Script.runInThisContext (vm.js:44:33)
at Object.runInThisContext (vm.js:116:38)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:569:30)
at evalScript (bootstrap_node.js:432:27)
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. 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/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.2.0-27-generic
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 /var/www/api/node_modules/hiredis
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/hiredis):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
added 31 packages, removed 719 packages and updated 694 packages in 113.072s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment