在Windows 10 x64

时间:2015-11-19 10:14:35

标签: npm hubot gyp

npm install error

我尝试为自己的机器人安装hubot适配器hubot-irc,但npm install出错:

  

C:\ Program Files(x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ V140 \ Microsoft.CppBuild.targets(366,5):警告MSB8003:无法完成   来自注册表的WindowsSDKDir变量。 TargetFrameworkVersion或PlatformToolset可能设置为无效的versio   n号。 [F:\ Skitta \文件\ GitHub的\ mybot-IRC \ node_modules \ hubot-IRC \ node_modules \ IRC \ node_modules \的iconv \建立\ libico   nv.vcxproj]   TRACKER:错误TRK0005:找不到:" CL.exe"。该系统找不到指定的文件。 [F:\ Skitta \文件\ GI   tHub \ mybot-IRC \ node_modules \ hubot-IRC \ node_modules \ IRC \ node_modules \的iconv \建立\ libiconv.vcxproj]```

     

gyp ERR!构建错误
  gyp ERR!堆栈错误:C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe失败,退出代码:1
  gyp ERR!在ChildProcess.onExit堆栈(C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ build.js:2   69:23)
  gyp ERR!在ChildProcess.emit堆栈(events.js:110:17)
  gyp ERR! Process.ChildProcess._handle.onexit(child_process.js:1074:12)堆栈   gyp ERR!系统Windows_NT 6.3.9600
  gyp ERR!命令"节点" " C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js" " rebuil   d"
  gyp ERR! cwd F:\ Skitta \ Documents \ GitHub \ mybot-irc \ node_modules \ hubot-irc \ node_modules \ irc \ node_modules \ iconv
  gyp ERR! node -v v0.12.7
  gyp ERR! node-gyp -v v2.0.1
  gyp ERR!不行   npm WARN可选dep失败,继续node-icu-charset-detector@0.0.7
  npm WARN可选dep失败,继续iconv@2.1.11

如何解决?

1 个答案:

答案 0 :(得分:0)

node-gyp是可能的罪魁祸首,因为它用于构建本机依赖项。它并不明显,但可能需要进行配置。请按照Windows install的说明进行操作,并特别注意您的Windows版本和所有Windows版本部分。

相关问题