[Node. js] npm 설치 node - gyp

윈도 10 설치 과정 에서 많은 오류 가 발생 했 습 니 다. 기록 하 는 방법 을 시도 해 보 았 습 니 다.
1. 설치 할 모듈
Microsoft. net 프레임 워 크 설정 환경 변수 C: Windows Microsoft. NETFrameworkv 4.0.30319 Visual Studio 2015 Windows SDK 8.1
2. 오류 해결
잘못 을 보고 하 다.
error MSB4019: The imported project "C:Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Default.props" was not f
ound. Confirm that the path in the declaration is correct, and that the file exists on disk.
해결 방법: 컴퓨터 에서 Microsoft. cpp. Default. props 는 C: Program Files (x86) \ MSBuild \ Microsoft. cpp \ v 4.0 \ V 140 디 렉 터 리 에서 관리자 로 명령 행 을 열 고 실행 합 니 다.
SET VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140

그리고 잘못 보 고 했 습 니 다. C + copiler 가 설치 되 어 있 지 않 은 것 같 습 니 다.
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:Usersjwang899Down
loadsEPM ProjectEPM-Webnode_modulesbufferutilbuildbufferutil.vcxproj]
해결 방법: Visual Studio 2015 에 C + project 를 새로 만 들 면 C + copiler 가 설 치 됩 니 다.그리고
npm install

잘못 을 보고 하 다.
error MSB4019: The imported project "C:Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Default.props" was not f
ound. Confirm that the path in the declaration is correct, and that the file exists on disk.
다시 실행,
SET VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140

이제 됐 습 니 다.

좋은 웹페이지 즐겨찾기