使用 npm 安装 node.js 模块时出错 [英] Error in installing node.js module using npm

查看:68
本文介绍了使用 npm 安装 node.js 模块时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 node.js 安装以下模块,但不断收到以下错误.你对我应该做什么有什么建议吗?所以我使用的是 Windows 7 并安装了 .NET Framework 2.0 SDK.

I am trying to install the following module using node.js, but keep on getting the following error. Do you have any suggestions on what I should do? So I am using windows 7 and have installed .NET Framework 2.0 SDK as well.

npm install execSync

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.

推荐答案

最简单的方法是安装 Visual Studio 的试用版,并以管理员身份在 Visual Studio 命令提示符下运行 npm.Visual Studio 2012 可以完成这项工作.

The easiest way is to install a trial version of visual studio and run npm in the visual studio command prompt as administrator. Visual studio 2012 does the job.

这篇关于使用 npm 安装 node.js 模块时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆