2016-08-27 6 views
1

내 nodej가 최근에 손상되어 다시 설치되었습니다. 자, 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 -v으로 다음 여전히 오류가 다음 node_modules 폴더를 삭제하고 npm install을 얻는 경우 npm rebuild을 할 필요가 확인.

희망 사항.

+0

nodejs를 제거하고 모든 캐시를 지 웠습니다. 비주얼 스튜디오도 설치했습니다. msvs 경로를 npm에서 전역으로 설정하십시오. 나는 node-gyp을 전 세계적으로 설치했다. 아직 오류가 있습니다. – Mithun

관련 문제