C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32 .Targets(147,5): error MSB6006:

goldenMoon 发布于 2016/08/03 11:46
阅读 3K+
收藏 0

node-gyp  build 报错

C:\Users\Administrator\Desktop\testc>node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@4.4.2 | win32 | ia32
gyp info spawn C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=Win32' ]
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
  TRACKER :
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32
.Targets(147,5): error MSB6006: “CL.exe”已退出,代码为 5。 [C:\Users\Administr
ator\Desk
top\testc\build\hello.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\Administrator\AppData\Roamin
g\npm\node_modules\node-gyp\lib\build.js:276: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_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator
\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd C:\Users\Administrator\Desktop\testc
gyp ERR! node -v v4.4.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

找来找去,没有运行出来
http://snoopyxdy.blog.163.com/blog/static/601174402012102391344617/

我运行到 node-gyp build 时就报这个错误,群里没人解决,来这里请教下大神,谢谢!!
加载中
0
266zll
266zll
该评论暂时无法显示,详情咨询 QQ 群:912889742
goldenMoon
goldenMoon
回复@266zll:好久没登了,忘记怎么解决得了,之前应该写过一次总结,不知道还在吗
0
学寂霜凝
学寂霜凝

解决过一次,然后忘记了,现在自己也遇到这个问题了 

OSCHINA
登录后可查看更多优质内容
返回顶部
顶部