2017-01-03 13 views
1

私はノードjsと私の上司が私にこのプロジェクトを送信するが、そのショーエラーを習得したい。どのように私は、NPMは、このコマンドを入力すると、インストールこの種の問題を解決するためにあなたのnpm installコマンドがnode-gypモジュールのインストール中に失敗し、エラー以下のショー...私はすでにインストールさのVisual Studio 2015npmのインストールコマンドを解決するには

gyp ERR! stack operable program or batch file. 
gyp ERR! stack 
gyp ERR! stack Can't find "msbuild.exe". Do you have Microsoft Visual Studio C++ 2008+ installed? 
gyp ERR! stack  at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:134:25 
gyp ERR! stack  at ChildProcess.exithandler (child_process.js:213:5) 
gyp ERR! stack  at emitTwo (events.js:106:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:191:7) 
gyp ERR! stack  at maybeClose (internal/child_process.js:877:16) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 
gyp ERR! System Windows_NT 6.1.7601 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin 
\\node-gyp.js" "rebuild" 
gyp ERR! cwd D:\Addi\HeavyMetalServer\node_modules\iltorb 
gyp ERR! node -v v6.9.2 
gyp ERR! node-gyp -v v3.4.0 
gyp ERR! not ok 

答えて

2

です。 node-gypモジュールは、Windowsにインストールするときに多くの問題を引き起こします。このコマンドを実行すると、まず依存関係をインストールすることができます(npm install --global --production windows-build-tools)。このコマンドはgithub pageに指定されています。 Windowsの場合

0

管理者権限

これは、多くの回避策の一つであるとからPowerShellのnpm installコマンドを実行してみてください

関連する問題