기타/프로그래밍 관련
gyp ERR! stack Error: Command failed python.EXE
WebHack
2019. 10. 25. 03:43
npm install 시에 위 에러가 난다면
Python 2.7 버전 64bit 설치 후
npm config set python "파이썬 2.7 경로\python.exe"
하고
npm install 하면 됨
gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "C:\Users\<youruser>\AppData\Local\Programs\Python\Python37-32\python.EXE", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\<project-path>\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR! stack at PythonFinder.<anonymous> (C:\<project-path>\node_modules\node-gyp\lib\configure.js:508:16) gyp ERR! stack at C:\<project-path>\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:158:21
위 에러시
관리자 권한으로
npm install --global --production windows-build-tools
npm install node-gyp