gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
发布于 8 年前 作者 cuizhennan 20018 次浏览 来自 问答

win10 系统下安装node-ldapauth

d:\git\nodejs_tpl\node_modules\ldapauth\node_modules\bcrypt>if not defined npm_config_node_gyp (node "f:\SOFTWARE\Nodejs\install4.1\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )

在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。

d:\git\nodejs_tpl\node_modules\ldapauth\node_modules\bcrypt\build\bcrypt_lib.vcxproj(20,3): error MSB4019: 未找到导入的 项目“d:\
Microsoft.Cpp.Default.props”。请确认 <Import> 声明中的路径正确,且磁盘上存在该文件。
gyp ERR! build error
gyp ERR! stack Error: *`C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe`* failed with exit code: 1
stack     at ChildProcess.onExit (f:\SOFTWARE\Nodejs\install4.1\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "f:\\SOFTWARE\\Nodejs\\install4.1\\node.exe" "f:\\SOFTWARE\\Nodejs\\install4.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd d:\git\nodejs_tpl\node_modules\ldapauth\node_modules\bcrypt
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
2 回复

各位大神?求解。。。。

参考

https://github.com/nodejs/node-gyp#installation

确保python, C++ build tool 安装正确

回到顶部