Jac*_*kie 30 visual-c++ node.js windows-10
所以我正在尝试编译 gyp 并且它显然想调用 VCBuild.exe ......
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:\...\node_module
s\browser-sync\node_modules\socket.io\node_modules\engine.io\node_modules\ws\no
de_modules\utf-8-validate\build\binding.sln]
Run Code Online (Sandbox Code Playgroud)
所以我使用它安装了 .Net 框架,但是当我进入 cmd 行时,我得到...
'VCBuild.exe' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)
那么我错过了什么我需要在没有 Visual Studio 的情况下获得 VCBuild 吗?
小智 63
npm install -g windows-build-tools
在管理窗口中运行:
开始安装... 启动安装程序,现在等待他们完成。 这可能需要一些时间 - 请耐心等待! 等待安装程序... - 成功安装 Python 2.7 正在等待安装程序... /已成功安装 Visual Studio 构建工具。
小智 5
(这个答案来自@s.meijer上面的评论。但我认为它本身就应该是一个答案。)
运行choco install vcbuildtools
将安装vcbuild
满足npm
Windows 上的构建需求。
归档时间: |
|
查看次数: |
42068 次 |
最近记录: |