2016-08-27 14 views
1

私のnodejsが最近破損して再インストールされました。さて、私はこのエラーに直面しているnpmの依存関係をインストールしている間。私は何が欠けていますか?WindowsのNPMインストールエラー

C:\Projects\xyz>npm i 
/
> [email protected] install C:\Projects\basic-vplex-sizer-ui\node_modules\bufferutil 
> node-gyp rebuild 


C:\Projects\basic-vplex-sizer-ui\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Users\ham13\AppData\Roaming\nvm\v4.4.3\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild) else (node "" rebuild) 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install v120 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Projects\basic-vplex-sizer-ui\node_modules\bufferutil\build\bufferutil.vcxproj] 

さらに詳しい情報: enter image description here

+0

今後の参考にしてください。エラーメッセージをコピーしてテキストに配置すると、同じエラーを検索するときに他のpeapleがあなたの質問を見つけるのが容易になります:) – Squazz

答えて

0

Node.jsバージョンが変更されている場合は、まだエラーを取得し、その後node_modulesフォルダを削除してnpm installを行うならば、あなたはnpm rebuildをしなければならないnode -vに確認してください。

希望は動作します。

+0

nodejsを削除し、すべてのキャッシュをクリアしました。 Visual Studioもインストールされています。 msvsパスをnpmからグローバルに設定します。私はグローバルにnode-gypをインストールしました。まだエラーがあります – Mithun

関連する問題