windows下install jsdom报contextify错
发布于 2年前 作者 cooiky 1182 次浏览
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack     at errnoException (child_process.js:945:
gyp ERR! stack     at Process.ChildProcess._handle.onexit (
34)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_mo
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\nodejs\oscar\node_modules\jsdom\node_module
gyp ERR! node -v v0.10.0
gyp ERR! node-gyp -v v0.8.5
gyp ERR! not ok
npm ERR! contextify[@0](/user/0).1.5 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the contextify[@0](/user/0).1.5 install script.
npm ERR! This is most likely a problem with the contextify
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.

安装jquery也是报这类似的错误

2 回复

有些 npm 包需要装 python 乃至 Visual Studio 来编译包。 所以那些不往 npm 传二进制的必须死啊必须死。

回到顶部