jpsierens / webpack-react-redux

A boilerplate for playing around with react, redux and react-router with the help of webpack.
MIT License
599 stars 196 forks source link

npm install failed for node sass on windows 10 #36

Closed prashantalhat closed 4 years ago

prashantalhat commented 6 years ago

Hi, I am facing this issue when performing npm install, particularly for node-sass module.

gyp verb check python checking for Python executable "python2" in the PATH gyp verbwhichfailed Error: not found: python2 gyp verbwhichfailed at getNotFoundError (C:\pocs\webpack-react-redux\node_modules\which\which.js:13:12) gyp verbwhichfailed at F (C:\pocs\webpack-react-redux\node_modules\which\which.js:68:19) gyp verbwhichfailed at E (C:\pocs\webpack-react-redux\node_modules\which\which.js:80:29) gyp verbwhichfailed at C:\pocs\webpack-react-redux\node_modules\which\which.js:89:16 gyp verbwhichfailed at C:\pocs\webpack-react-redux\node_modules\isexe\index.js:42:5 gyp verbwhichfailed at C:\pocs\webpack-react-redux\node_modules\isexe\windows.js:36:5 gyp verbwhichfailed at FSReqWrap.oncomplete (fs.js:152:21) gyp verbwhichfailed python2 { Error: not found: python2 gyp verbwhichfailed at getNotFoundError (C:\pocs\webpack-react-redux\node_modules\which\which.js:13:12) gyp verbwhichfailed at F (C:\pocs\webpack-react-redux\node_modules\which\which.js:68:19) gyp verbwhichfailed at E (C:\pocs\webpack-react-redux\node_modules\which\which.js:80:29) gyp verbwhichfailed at C:\pocs\webpack-react-redux\node_modules\which\which.js:89:16 gyp verbwhichfailed at C:\pocs\webpack-react-redux\node_modules\isexe\index.js:42:5 gyp verbwhichfailed at C:\pocs\webpack-react-redux\node_modules\isexe\windows.js:36:5 gyp verbwhichfailed at FSReqWrap.oncomplete (fs.js:152:21) gyp verbwhichfailed stack: 'Error: not found: python2\n at getNotFoundError (C:\\pocs\\webpack-react-redux\\node_modules\\which\\which.js:13:12)\n at F (C:\\pocs\\webpack-react-redux\\node_modules\\which\\which.js:68:19)\n at E (C:\\pocs\\webpack-react-redux\\node_modules\\which\\which.js:80:29)\n at C:\\pocs\\webpack-react-redux\\node_modules\\which\\which.js:89:16\n at C:\\pocs\\webpack-react-redux\\node_modules\\isexe\\index.js:42:5\n at C:\\pocs\\webpack-react-redux\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)', gyp verbwhichfailed code: 'ENOENT' } gyp verb check python checking for Python executable "python" in the PATH gyp verbwhichsucceeded python C:\Users\Prashant Alhat\AppData\Local\Programs\Python\Python36-32\python.EXE gyp verb check python versionC:\Users\Prashant Alhat\AppData\Local\Programs\Python\Python36-32\python.EXE -c "import platform; print(platform.python_version());"returned: "3.6.4\r\n"

prashantalhat commented 6 years ago

I have a solution for this. I just updated node sass module to latest version i.e. 4.8.3 which fixed my issue.