![](/img/trans.png)
[英]With Node 0.12.2 and npm 2.7.4 ionic installation error on windows 7
[英]NPM installation Error in windows
我的nodejs最近被破壞並重新安裝。 現在,我在安裝npm依賴項時遇到此錯誤。 我錯過了什么?
C:\Projects\xyz>npm i
/
> bufferutil@1.2.1 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]
如果Node.js
版本已更改,請檢查node -v
然后您必須執行npm rebuild,如果仍然出現錯誤,則刪除node_modules
文件夾並執行npm install
。
希望有效。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.