contextify icon indicating copy to clipboard operation
contextify copied to clipboard

Failed install on Windows7 with Python2.7&VS2015

Open laiyuncong8404 opened this issue 11 years ago • 2 comments

when I install 'newman', I get the following problem


c:\>npm install -g newman --registry=https://registry.npmjs.org
\


> [email protected] install C:\Users\Administrator\AppData\Roaming\npm\node_modules\newman\node_modules\jsdom\node_modules\contextify
> node-gyp rebuild

\
C:\Users\Administrator\AppData\Roaming\npm\node_modules\newman\node_modules\jsdom\node_modules\contextify>if not defined npm_config_node_gyp (node "C:\Users\Adm
inistrator\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp: C:\Users\Administrator\.node-gyp\0.12.7\common.gypi not found (cwd: C:\Users\Administrator\AppData\Roaming\npm\node_modules\newman\node_modules\jsdom\node_
modules\contextify) while reading includes of 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 (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:357:16)
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 Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\newman\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "node" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "newman" "--registry=https://registry.
npmjs.org"
npm ERR! node v0.12.7
npm ERR! npm  v2.14.0
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 contextify 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 contextify
npm ERR! There is likely additional logging output above.

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

Then I install 'contextify' and I get the ERR information as below:

c:\>npm install -g contextify --registry=https://registry.npmjs.org
-
> [email protected] install C:\Users\Administrator\AppData\Roaming\npm\node_modules\contextify
> node-gyp rebuild


C:\Users\Administrator\AppData\Roaming\npm\node_modules\contextify>if not defined npm_config_node_gyp (node "C:\Users\Administrator\AppData\Roaming\npm\node_mod
ules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp: C:\Users\Administrator\.node-gyp\0.12.7\common.gypi not found (cwd: C:\Users\Administrator\AppData\Roaming\npm\node_modules\contextify) while reading inclu
des of 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 (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:357:16)
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 Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\contextify
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "node" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "contextify" "--registry=https://regis
try.npmjs.org"
npm ERR! node v0.12.7
npm ERR! npm  v2.14.0
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 contextify 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 contextify
npm ERR! There is likely additional logging output above.

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

laiyuncong8404 avatar Oct 09 '15 08:10 laiyuncong8404

This is not an issue with contextify, it is an issue with your node-gyp installation. It cannot find the common.gypi file. I would suggest you search for solutions to that issue,

gravidThoughts avatar Oct 20 '15 15:10 gravidThoughts

Thanks @gravidThoughts

brianmcd avatar Nov 12 '15 16:11 brianmcd