2013-09-21 64 views
0

我想在节点js上安装jquery。我这样做:为节点j安装jquery时出错

npm install jquery 

,其结果是:

Building the projects in this solution one at a time. To enable parallel build, 
please add the "/m" switch. 
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". 
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua 
l Studio 2005 or 3) add the location of the component to the system path if it 
is installed elsewhere. [C:\Users\Blah\node_modules\jquery\n 
ode_modules\contextify\build\binding.sln] 
gyp ERR! build error 
gyp ERR! stack Error: `c:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe 
` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\ 
npm\node_modules\node-gyp\lib\build.js:267:23) 
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 Windows_NT 6.1.7601 
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu 
les\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd C:\Users\Blah\node_modules\jquery\node_modules\co 
ntextify 
gyp ERR! node -v v0.10.18 
gyp ERR! node-gyp -v v0.10.9 
gyp ERR! not ok 
npm ERR! weird error 1 
npm ERR! not ok code 0 

有谁知道如何解决这一问题?

感谢

回答

0

在NPM自述,位于here,它很清楚地指出:

无法在采用了WINDOWS

很多人都在为得到这个模块上工作的问题视窗。失败与建立对话窗口的问题有关。这似乎是一个Windows环境问题。我无法访问Windows机器,因此无法通过Windows安装过程探索工作。如果你弄清楚如何在windows上构建文档,请发给我工作指导!

有公布了GitHub的页面,OneTwoso on的几个问题。从粗略浏览问题和答复,似乎这可能是一个挑战,让这个工作 - 但它可能是可能的。你最好的选择是开始阅读这些问题。