node-sass error when installing dependencies for WordPress Understrap theme - node-sass

I've been using the Understrap theme for WordPress for a while with no problems, but today I'm getting a node-sass error when running the command yarn install to install the theme's dependencies.
I had read that the latest version of node-sass gives an error when trying to install it, so I tried installing it using the command yarn add node-sass#4.13, but this doesn't work since one of the packages in the Understrap theme is bundled with the latest version of node-sass which causes this error. Here's the full error log I get:
error C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\gulp-sass\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\gulp-sass\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp#3.8.0
gyp info using node#12.13.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb `which` failed stack: 'Error: not found: python2\n' +
gyp verb `which` failed ' at getNotFoundError (C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\which\\which.js:13:12)\n' +
gyp verb `which` failed ' at F (C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\which\\which.js:68:19)\n' +
gyp verb `which` failed ' at E (C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\which\\which.js:80:29)\n' +
gyp verb `which` failed ' at C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\which\\which.js:89:16\n' +
gyp verb `which` failed ' at C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\isexe\\index.js:42:5\n' +
gyp verb `which` failed ' at C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\isexe\\windows.js:36:5\n' +
gyp verb `which` failed ' at FSReqCallback.oncomplete (fs.js:158:21)',
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Users\Ben\AppData\Local\Programs\Python\Python37-32\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\Ben\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v12.13.0
PS C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child> yarn install node-sass#4.13
yarn install v1.13.0
error `install` has been replaced with `add` to add new dependencies. Run "yarn add node-sass#4.13" instead.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
PS C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child> yarn install node-sass#4.13
yarn install v1.13.0
error `install` has been replaced with `add` to add new dependencies. Run "yarn add node-sass#4.13" instead.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
PS C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child> yarn add node-sass#4.13
yarn add v1.13.0
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#1.2.7: The platform "win32" is incompatible with this module.
info "fsevents#1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > bootstrap#4.3.1" has unmet peer dependency "jquery#1.9.1 - 3".
[4/4] Building fresh packages...
[-/6] ⠠ waiting...
[-/6] ⠠ waiting...
[-/6] ⠠ waiting...
[4/6] ⠠ node-sass
error C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\gulp-sass\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\gulp-sass\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp#3.8.0
gyp info using node#12.13.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb `which` failed stack: 'Error: not found: python2\n' +
gyp verb `which` failed ' at getNotFoundError (C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\which\\which.js:13:12)\n' +
gyp verb `which` failed ' at F (C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\which\\which.js:68:19)\n' +
gyp verb `which` failed ' at E (C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\which\\which.js:80:29)\n' +
gyp verb `which` failed ' at C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\which\\which.js:89:16\n' +
gyp verb `which` failed ' at C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\isexe\\index.js:42:5\n' +
gyp verb `which` failed ' at C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\isexe\\windows.js:36:5\n' +
gyp verb `which` failed ' at FSReqCallback.oncomplete (fs.js:158:21)',
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Users\Ben\AppData\Local\Programs\Python\Python37-32\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\Ben\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:295:12)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\xampp\\htdocs\\pug_test\\wp-content\\themes\\understrap-child\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cs_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\xampp\htdocs\pug_test\wp-content\themes\understrap-child\node_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v12.13.0
Does anyone else use this WordPress theme? If so, would you know how I can edit the package.json to overcome this issue with node-sass? Thanks a lot.

I've had a similar problem with Understrap. I'm using npm over Yarn.
I managed to resolve by grabbing the latest version of node-sass rather than the older version understrap is trying to use.
The fix for me was to run npm i node-sass but I am aware that doesn't work for you.
Is there anyway you can just get yarn to grab the latest version of node-sass rather than specify a version?

Related

npm install err when trying to npm install inside amigoscode/javascript

enter image description hereim trying to install npm inside amigocode javascrip file but keep getting this.
npm ERR! code 1
npm ERR! path R:\amigojs\javascript\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: R:\node.exe R:\amigojs\javascript\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli 'R:\node.exe',
npm ERR! gyp verb cli
'R:\amigojs\javascript\node_modules\node-gyp\bin\node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp#3.8.0
npm ERR! gyp info using node#16.15.0 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb which failed Error: not found:
python2
npm ERR! gyp verb which failed at getNotFoundError (R:\amigojs\javascript\node_modules\which\which.js:13:12)
npm ERR! gyp verb which failed at F (R:\amigojs\javascript\node_modules\which\which.js:68:19)
npm ERR! gyp verb which failed at E (R:\amigojs\javascript\node_modules\which\which.js:80:29)
npm ERR! gyp verb which failed at R:\amigojs\javascript\node_modules\which\which.js:89:16
npm ERR! gyp verb which failed at R:\amigojs\javascript\node_modules\isexe\index.js:42:5
npm ERR! gyp verb which failed at R:\amigojs\javascript\node_modules\isexe\windows.js:36:
5
npm ERR! gyp verb which failed at
FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb which failed python2 Error: not found: python2
npm ERR! gyp verb which failed at getNotFoundError (R:\amigojs\javascript\node_modules\which\which.js:13:12)
npm ERR! gyp verb which failed at F (R:\amigojs\javascript\node_modules\which\which.js:68:19)
npm ERR! gyp verb which failed at E (R:\amigojs\javascript\node_modules\which\which.js:80:29)
npm ERR! gyp verb which failed at R:\amigojs\javascript\node_modules\which\which.js:89:16
npm ERR! gyp verb which failed at R:\amigojs\javascript\node_modules\isexe\index.js:42:5
npm ERR! gyp verb which failed at R:\amigojs\javascript\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb which failed at enter code hereFSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb which failed code: 'ENOENT'
npm ERR! gyp verb which failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb which succeeded python C:\Python310\python.EXE
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed:
C:\Python310\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack File "", line 1
npm ERR! gyp ERR! stack import sys; print
"%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
npm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:398:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "R:\node.exe"
"R:\amigojs\javascript\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd R:\amigojs\javascript\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.15.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
npm ERR! A complete log of this run can be found in:

Cannot run package installation and run serve the application with npm

I'm trying to run this sample I found. This is a solution with .netcore for the backend and Vuejs for the front-end.
I want to start the Vuejs app simply running npm run serve got this error:
PS C:\Users\xxx\Downloads\VueApp> npm run serve
> vue-argon-dashboard#0.1.0 serve
> vue-cli-service serve
'vue-cli-service' is not recognized as an internal or external command,
operable program or batch file.
Then when I try to run npm i.
I got the following output:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vue-argon-dashboard#0.1.0
npm ERR! Found: eslint#7.32.0
npm ERR! node_modules/eslint
npm ERR! dev eslint#"^7.3.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint#">= 1.6.0 < 7.0.0" from #vue/cli-plugin-eslint#4.5.15
npm ERR! node_modules/#vue/cli-plugin-eslint
npm ERR! dev #vue/cli-plugin-eslint#"^4.4.6" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
This is the package.json:
Try deleting the node_modules folder and after that run npm i from the cmd.
There was a lock into the root project directory. I deleted it and run npm i --force. unfortunately, it got more other different errors
npm ERR! code 1
npm ERR! path C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli 'C:\\Users\\Bruno\\Downloads\\vue-argon-dashboard-asp-net-master\\vue-argon-dashboard-asp-net-master\\Vue\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp#3.8.0
npm ERR! gyp info using node#16.13.0 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb `which` failed python2 Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb `which` failed code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb `which` failed python Error: not found: python
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb `which` failed code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb could not find "python". checking python launcher
npm ERR! gyp verb could not find "python". guessing location
npm ERR! gyp verb ensuring that file exists: C:\Python27\python.exe
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack at PythonFinder.failNoPython (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack at C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\graceful-fs\polyfills.js:282:31
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp ERR! System Windows_NT 10.0.19044
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Bruno\\Downloads\\vue-argon-dashboard-asp-net-master\\vue-argon-dashboard-asp-net-master\\Vue\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users\Bruno\Downloads\vue-argon-dashboard-asp-net-master\vue-argon-dashboard-asp-net-master\Vue\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.13.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

When I run the npm install gulp-sass I get this error?

I get this error after running the command npm install gulp-sass I spend a lot of time to fix this bug but haven't succeeded. If anyone have an idea how to resolve this let me know.
Thank you so much.
I working on the personal project now I can't do anymore because I want to fix this first let me know what should I do.
npm ERR! code 1
npm ERR! path C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\gulp-sass\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\gulp-sass\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli 'C:\\Users\\Ramish Hassan Riaz\\Desktop\\website-components\\node_modules\\gulp-sass\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp#3.8.0
npm ERR! gyp info using node#15.11.0 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:200:21)
npm ERR! gyp verb `which` failed python2 Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:200:21) {
npm ERR! gyp verb `which` failed code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` succeeded python C:\Python39\python.EXE
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:\Python39\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack File "<string>", line 1
npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack ^
npm ERR! gyp ERR! stack SyntaxError: invalid syntax
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:326:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:378:20)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Ramish Hassan Riaz\\Desktop\\website-components\\node_modules\\gulp-sass\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users\Ramish Hassan Riaz\Desktop\website-components\node_modules\gulp-sass\node_modules\node-sass
npm ERR! gyp ERR! node -v v15.11.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ramish Hassan Riaz\AppData\Local\npm-cache\_logs\2021-03-18T07_14_06_749Z-debug.log`enter code here`
try it, it's work for me!
1-
$ npm uninstall gulp gulp-sass
2- run this code
$ npm install --global --production windows-build-tools
3- reinstall gulp gulp-sass
$ npm install gulp gulp-sass

got error when 'npm install' ionic 2 app

got error when 'npm install' , please help .
i got this problem when i try to npm install ionic 2 app,about last year project
but when i try to build new app using ionic start,got no problem
please guide me how to solve this because im new to ionic.
> node-sass#3.10.1 install E:\ionic\Section Code (Finished)\node_modules\node-sass
> node scripts/install.js
Start downloading binary at https://github.com/sass/node-sass/releases/download/v3.10.1/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.10.1/win32-x64-57_binding.node": ode:
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> node-sass#3.10.1 postinstall E:\ionic\Section Code (Finished)\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe E:\ionic\Section Code (Finished)\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'E:\\ionic\\Section Code (Finished)\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp#3.6.2
gyp info using node#8.11.1 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:\ionic\Section Code (Finished)\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\ionic\Section Code (Finished)\node_modules\which\which.js:68:19)
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed python { Error: not found: python
gyp verb `which` failed at getNotFoundError (E:\ionic\Section Code (Finished)\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\ionic\Section Code (Finished)\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\ionic\Section Code (Finished)\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\ionic\Section Code (Finished)\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\ionic\Section Code (Finished)\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\ionic\Section Code (Finished)\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed stack: 'Error: not found: python\n at getNotFoundError (E:\\ionic\\Section Code (Finished)\\node_modules\\which\\which.js:13:12)\n at F (E:\\ionic\\Section Code (Finished)\\node_modules\\which\\which.js:68:19)\n at E (E:\\ionic\\Section Code (Finished)\\node_modules\\which\\which.js:80:29)\n at E:\\ionic\\Section Code (Finished)\\node_modules\\which\\which.js:89:16\n at E:\\ionic\\Section Code (Finished)\\node_modules\\isexe\\index.js:42:5\n at E:\\ionic\\Section Code (Finished)\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
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 (E:\ionic\Section Code (Finished)\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (E:\ionic\Section Code (Finished)\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at E:\ionic\Section Code (Finished)\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\ionic\\Section Code (Finished)\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\ionic\Section Code (Finished)\node_modules\node-sass
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#3.10.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#3.10.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hafez\AppData\Roaming\npm-cache\_logs\2018-04-10T00_09_01_869Z-debug.log
This are my node version
v8.11.1
npm version
v8.11.1
Follow this step
1.rm -rf node_modules
2.rm package-lock.json
3.npm i --unsafe-perm=true

NPM error when i start a new project in foundation

Hello I'm a newie with npm, gulp, etc. I try to make run foundation-cli.
I install globally npm, gulp, bower, node-sass, node-gyp, phantomJS, foundation-cli. And when I try to make a new project appears this errors.
> phantomjs-prebuilt#2.1.14 install C:\Users\ivano\npmhost\news1\node_modules\gulp-uncss\node_modules\uncss\node_modules\phridge\node_modules\phantomjs-prebuilt
> node install.js
Considering PhantomJS found at C:\Users\ivano\AppData\Roaming\npm\phantomjs.CMD
Looks like an `npm install -g` on windows; skipping installed version.
Download already available at C:\Users\ivano\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
Verified checksum of previously downloaded file
Extracting zip contents
Removing C:\Users\ivano\npmhost\news1\node_modules\gulp-uncss\node_modules\uncss\node_modules\phridge\node_modules\phantomjs-prebuilt\lib\phantom
Copying extracted folder C:\Users\ivano\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip-extract-1500445503067\phantomjs-2.1.1-windows -> C:\Users\ivano\npmhost\news1\node_modules\gulp-uncss\node_modules\uncss\node_modules\phridge\node_modules\phantomjs-prebuilt\lib\phantom
Writing location.js file
Done. Phantomjs binary available at C:\Users\ivano\npmhost\news1\node_modules\gulp-uncss\node_modules\uncss\node_modules\phridge\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe
\
> optipng-bin#3.1.4 postinstall C:\Users\ivano\npmhost\news1\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\imagemin-optipng\node_modules\optipng-bin
> node lib/install.js
√ optipng pre-build test passed successfully
> jpegtran-bin#3.2.0 postinstall C:\Users\ivano\npmhost\news1\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\imagemin-jpegtran\node_modules\jpegtran-bin
node lib/install.js
√ jpegtran pre-build test passed successfully
> gifsicle#3.0.4 postinstall C:\Users\ivano\npmhost\news1\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\imagemin-gifsicle\node_modules\gifsicle
> node lib/install.js
√ gifsicle pre-build test passed successfully
-
> node-sass#3.13.1 install C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> node-sass#3.13.1 postinstall C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp#3.6.2
gyp info using node#8.1.4 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp- sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed stack: 'Error: not found: python2\n at getNotFoundError (C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node- gyp\\node_modules\\which\\which.js:13:12)\n at F (C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\which.js:68:19)\n at E (C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\which.js:80:29)\n at C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\which.js:89:16\n at C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node- gyp\\node_modules\\which\\node_modules\\isexe\\index.js:42:5\n at C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed at getNotFoundError (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed python { Error: not found: python
gyp verb `which` failed at getNotFoundError (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed stack: 'Error: not found: python\n at getNotFoundError (C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\which.js:13:12)\n at F (C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\which.js:68:19)\n at E (C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\which.js:80:29)\n at C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\which.js:89:16\n at C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\node_modules\\isexe\\index.js:42:5\n at C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\node_modules\\which\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
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\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ivano\\npmhost\\news1\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\ivano\npmhost\news1\node_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v8.1.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
There were some problems during the installation.
✓ New project folder created.
✗ Node modules not installed. Try running npm install manually.
✓ Bower components installed.
Once you've resolved the above issues, run foundation watch while inside the news1 folder.
Cannot download
"https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node"
try to fixed by installing latest node-sass to project:
npm i gulp-sass#latest --save-dev
Error: not found: python2
you are missing python. install it and add to PATH
this command:
npm install --global --production windows-build-tools
should install python and other necessary dependencies