npm install -g ember-cli错误MSB3191

时间:2015-07-23 04:25:16

标签: ember-cli

我使用的是Visual Studio 2015的Windows 8.1。

安装 Ember-cli 会出现以下错误。有人经历过吗?

C:\Users\[username]\AppData\Roaming\npm\node_modules\ember-cli\node_modules\testem\
node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  
else (node  rebuild )

一次一个地在此解决方案中构建项目。要启用并行构建, 请添加" / m"开关。

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targe
ts(312,5): error MSB3491: Could not write lines to file "Release\obj\bufferutil
\bufferutil.tlog\bufferutil.lastbuildstate". The specified path, file name, or
both are too long. The fully qualified file name must be less than 260 characte
rs, and the directory name must be less than 248 characters. [C:\Users\[username]\
AppData\Roaming\npm\node_modules\ember-cli\node_modules\testem\node_modules\soc
ket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules
\ws\node_modules\bufferutil\build\bufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.3.9600

0 个答案:

没有答案