Error: Cannot find module 'D:\works\ui\node_modules\node-sass\node_modules\pangyp\bin\node-gyp'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Build failed
npm WARN [email protected] No repository field.
npm WARN [email protected] license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})+ [email protected]
updated 1 package in 25.056s
npm install -g [email protected]
D:\works\ui\node_modules\node-sass>node scripts\build.js
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.8.10, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (D:\works\ui\node_modules\node-sass\node_modules\pangyp\lib\configure.js:109:14)
gyp ERR! stack at D:\works\ui\node_modules\node-sass\node_modules\pangyp\lib\configure.js:98:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:285:7)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\works\\ui\\node_modules\\node-sass\\node_modules\\pangyp\\bin\\node-gyp" "rebuild"
gyp ERR! cwd D:\works\ui\node_modules\node-sass
gyp ERR! node -v v10.24.1
gyp ERR! pangyp -v v2.1.0
gyp ERR! not ok
Build failed
D:\works\ui\node_modules\node-sass>node scripts\build.js
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.8.10, which is not supported by gyp.
gyp ERR! stack You can pass the --pytho