Colt / webpack-demo-app

Accompanies my 10-part Youtube Webpack course. Each commit comes with detailed notes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-sass result in gyp error "Can't find Python executable"

samirergaibi opened this issue · comments

node-sass@4.11.0 breaks npm install on Windows 10, resulting in the following error

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\samir\Desktop\woooha\webpack-demo-app\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\samir\Desktop\woooha\webpack-demo-app\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at C:\Users\samir\Desktop\woooha\webpack-demo-app\node_modules\graceful-fs\polyfills.js:282:31
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:158:21)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\samir\\Desktop\\woooha\\webpack-demo-app\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\samir\Desktop\woooha\webpack-demo-app\node_modules\node-sass
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.11.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.11.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

EDIT: updating node-sass to version 4.13.1 solved this problem.