【问题标题】:get error when using npm to download jsdom使用 npm 下载 jsdom 时出错
【发布时间】:2013-07-10 11:46:53
【问题描述】:
> node-gyp rebuild


d:\csfv\csfv_cms_module\node_modules\jsdom\node_modules\contextify>node "c:\Prog
ram Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\nod
e-gyp\bin\node-gyp.js" rebuild
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/domhandler
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/domelementtype
npm http 304 https://registry.npmjs.org/readable-stream
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack     at errnoException (child_process.js:980:11)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:771:
34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\nod
e_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd d:\csfv\csfv_cms_module\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v0.10.12
gyp ERR! node-gyp -v v0.10.0
gyp ERR! not ok

我的操作系统是 windows 8.1 预览版, 蟒蛇2.7, vc++2010, 并且添加了C++的环境变量,还是不行,谢谢

【问题讨论】:

    标签: web npm jsdom


    【解决方案1】:

    你:

    windows 8.1 preview, 
    vc++2010,
    

    node-gyp 文档:

    Windows 7/8:
    Microsoft Visual Studio C++ 2012 for Windows Desktop (Express version works well)
    

    【讨论】:

    • 在我的电脑上,vc++2012和vc++ 2010都安装了!...我不知道为什么会出现这个问题..
    猜你喜欢
    • 2012-02-09
    • 1970-01-01
    • 1970-01-01
    • 2014-07-28
    • 2021-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-29
    相关资源
    最近更新 更多