我正试图安装nodejs
从现在很长一段时间。我试过在谷歌上搜索,但说真的,我没有任何有效的解决方案。
我的第一个问题是
其次,根据谷歌的建议,我尝试了以下几点
https://github.com/TooTallNate/node-gyp
删除错误,但仍无法工作。我有以下版本
当我运行npm-install
时,错误显示如下
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 Visual Studio 2005 or 3) add the location of the
component to the system path if it is installed elsewhere.
我的package.json
如下:
{
"name": "TRest",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-watch": "~0.5.3",
"grunt-sass": "~0.11.0",
"grunt-pixrem": "^0.1.2",
"grunt-legacssy": "^0.2.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.3.2",
"node-bourbon": "^1.0.0"
}
}
通过这样做,您可以告诉npm使用Visual studio 2010。。。
将socket.io替换为出现问题的包。
也可以设置npm的全局设置:
我试图安装Stand循环,并得到这个错误“MSBuff:MebB328:无法加载VisualC++组件”VCuBuff.exe。 我能通过运行这个来解决这个问题。
在windows上查找节点 $npm安装 $哪个节点 cd进入目录后,在目录cd内进入node_modules\npm文件夹,最后: $npm安装node gyp@latest
或者尝试
npm install --global --production windows-build-tools
相关问题 更多 >
编程相关推荐