Node-gyp: .node-gyp 0.10.24 common.gypi not found

Created on 31 Dec 2013  路  2Comments  路  Source: nodejs/node-gyp

Hi i am getting following error on installing freshbook module

$ npm install freshbooks
npm http GET https://registry.npmjs.org/freshbooks/0.2.1
npm http 304 https://registry.npmjs.org/freshbooks/0.2.1
npm http GET https://registry.npmjs.org/libxmljs/0.8.1
npm http 304 https://registry.npmjs.org/libxmljs/0.8.1
npm http GET https://registry.npmjs.org/bindings/1.0.0
^[OAnpm http 304 https://registry.npmjs.org/bindings/1.0.0

[email protected] install /Users/ankitpatial/Documents/projects/app/node_modules/freshbooks/node_modules/libxmljs
node-gyp rebuild

gyp: /Users/ankitpatial/.node-gyp/0.10.24/common.gypi not found (cwd: /Users/ankitpatial/Documents/projects/app/node_modules/freshbooks/node_modules/libxmljs) while reading includes of 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: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 Darwin 13.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/ankitpatial/Documents/projects/app/node_modules/freshbooks/node_modules/libxmljs
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.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 libxmljs 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 libxmljs
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "freshbooks"
npm ERR! cwd /Users/ankitpatial/Documents/projects/app
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.22
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/ankitpatial/Documents/projects/app/npm-debug.log
npm ERR! not ok code 0

Most helpful comment

Not a issue with package, i removed old dir ~/.node_gyp and ran npm install, and all went well.

All 2 comments

there is no file common.gypi in dir /Users/ankitpatial/.node-gyp. But dir /Users/ankitpatial/.node-gyp/0.10.21 and others has it.

Not a issue with package, i removed old dir ~/.node_gyp and ran npm install, and all went well.

Was this page helpful?
0 / 5 - 0 ratings