安装时出现以下错误:
npm install ecrud
我是团队中唯一遇到此问题的人。以前我收到一条单独的错误消息,指出我需要 .NET 2 SDK 或添加到 VCBuild.exe 的路径。我安装了 SDK、Visual Studio 和 Visual C++ express。然后我看到这个错误:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(29
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(29
7,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.
7,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.
TargetFrameworkVersion or PlatformToolset may be set to an invalid version nu
TargetFrameworkVersion or PlatformToolset may be set to an invalid version nu
mber. [C:\Program Files\nodejs\node_modules\ecrud\node_modules\mongodb\node_mod
ules\kerberos\build\kerberos.vcxproj]
mber. [C:\Program Files\nodejs\node_modules\ecrud\node_modules\mongodb\node_mod
ules\bson\build\bson.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x
64.Targets(146,5): error MSB6006: "CL.exe" exited with code -1073741515. [C:\Pr
ogram Files\nodejs\node_modules\ecrud\node_modules\mongodb\node_modules\bson\bu
ild\bson.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x
64.Targets(146,5): error MSB6006: "CL.exe" exited with code -1073741515. [C:\Pr
ogram Files\nodejs\node_modules\ecrud\node_modules\mongodb\node_modules\kerbero
s\build\kerberos.vcxproj]
npm http 408 https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm ERR! fetch failed https://registry.npmjs.org/range-parser/-/range-parser-0.0
.4.tgz
npm http GET https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 200 https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz