Thursday, 11 May 2017

Node gyp error even after setting the environment variable

I have set my environment variable as PYTHON=D:\Program Files\Python36-32\python.exe, but still I get the below error. This is while doing npm install node-gyp --save. I am not able to find a solution for it. My python version is python-3.5.6

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "D:\Program Files\Python36-32\python.exe", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:19) gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:480:16) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:112:15) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd D:\R04_17\FarmersMBaaS\node_modules\timekit gyp ERR! node -v v7.5.0 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok

Any help would be appreciated. Need a perfect solution for removing this error.

Thanks



via Owner

No comments:

Post a Comment