Error during yarn install - gyp ERR! not ok - yarnpkg

I recently needed to update my docker container images. But now the pipeline to build my package which uses docker images is resulting in this error.
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > react-signature-canvas#1.0.6" has unmet peer dependency "prop-types#^15.5.8".
warning " > sass-loader#3.1.2" has incorrect peer dependency "node-sass#^3.4.2".
[4/4] Building fresh packages...
error /builds/myprojects/projects/frontend-forms/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /builds/myprojects/projects/frontend-forms/node_modules/node-sass
Output:
Building: /usr/bin/node /builds/myprojects/projects/frontend-forms/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 '/usr/bin/node',
gyp verb cli '/builds/myprojects/projects/frontend-forms/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.22.12 | linux | 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 (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:80:29)
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/which/which.js:89:16
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:80:29)
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/which/which.js:89:16
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168: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` failed Error: not found: python
gyp verb `which` failed at getNotFoundError (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:80:29)
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/which/which.js:89:16
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168:21)
gyp verb `which` failed python Error: not found: python
gyp verb `which` failed at getNotFoundError (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:80:29)
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/which/which.js:89:16
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /builds/myprojects/projects/frontend-forms/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
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 (/builds/myprojects/projects/frontend-forms/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (/builds/myprojects/projects/frontend-forms/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack at F (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/builds/myprojects/projects/frontend-forms/node_modules/which/which.js:80:29)
gyp ERR! stack at /builds/myprojects/projects/frontend-forms/node_modules/which/which.js:89:16
gyp ERR! stack at /builds/myprojects/projects/frontend-forms/node_modules/isexe/index.js:42:5
gyp ERR! stack at /builds/myprojects/projects/frontend-forms/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:168:21)
gyp ERR! System Linux 4.18.0-240.8.1.el8_3.x86_64
gyp ERR! command "/usr/bin/node" "/builds/myprojects/projects/frontend-forms/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /builds/myprojects/projects/frontend-forms/node_modules/node-sass
gyp ERR! node -v v12.22.12
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
section_end:1658202813:step_script
[0Ksection_start:1658202813:cleanup_file_variables
[0K[0K[36;1mCleaning up file based variables[0;m
[0;msection_end:1658202814:cleanup_file_variables
[0K[31;1mERROR: Job failed: exit code 1
[0;m

Related

Can anyone help me with this Yarn start and Yarn error (Failed to compile)

Yarn start:
Failed to compile.
./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/index.scss)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
Yarn:
error E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\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 'E:\\Programing\\Web Development\\pair-programming-frontend-react-main\\tasks\\fe-pair-programming\\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#16.15.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:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198: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\Aleksandar\AppData\Local\Programs\Python\Python39\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\Aleksandar\AppData\Local\Programs\Python\Python39\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 (node:child_process:398:12)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
gyp ERR! stack at Socket.<anonymous> (node:internal/child_process:451:11)
gyp ERR! stack at Socket.emit (node:events:527:28)
gyp ERR! stack at Pipe.<anonymous> (node:net:709:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\Programing\\Web Development\\pair-programming-frontend-react-main\\tasks\\fe-pair-programming\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\node-sass
gyp ERR! node -v v16.15.1
From what I see in your error, you need python2/python to be able to install the dependencies. If you do not have python2 or python, try installing it and try again. If you do have python2 or python but the program is not picking it up for whatever reason, you can specify the absolute path to python2's python.exe using yarn config set python /path/to/python2/python.exe or npm config set python /path/to/executable/python2.7. You can find more information here.

How to fix npm ERR! code 1 in a Laravel Project

I recently started to learn Laravel and today I run into an error when setting up my Laravel project (using windows). I tried to find a suitable solution online but none of them works.
Commands:
composer create-project laravel/laravel quickstart-v2 --prefer-dist "5.2.*"
composer update
npm install
Node -V: v12.14.1
npm -V: 7.20.3
Error after running "npm install":
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated request#2.88.2: request has been deprecated,
npm ERR! code 1
npm ERR! path C:\xampp\htdocs\laravel-project\quickstart-v2\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:\xampp\htdocs\laravel-project\quickstart-v2\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:\\xampp\\htdocs\\laravel-project\\quickstart-v2\\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#12.14.1 | 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 "D:\Library\Python\Python27\python.exe" in the PATH
npm ERR! gyp verb `which` failed Error: not found: D:\Library\Python\Python27\python.exe
npm ERR! gyp verb `which` failed at getNotFoundError (C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21)
npm ERR! gyp verb `which` failed D:\Library\Python\Python27\python.exe Error: not found: D:\Library\Python\Python27\python.exe
npm ERR! gyp verb `which` failed at getNotFoundError (C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21) {
npm ERR! gyp verb `which` failed stack: 'Error: not found: D:\\Library\\Python\\Python27\\python.exe\n' +
npm ERR! gyp verb `which` failed ' at getNotFoundError (C:\\xampp\\htdocs\\laravel-project\\quickstart-v2\\node_modules\\which\\which.js:13:12)\n' +
npm ERR! gyp verb `which` failed ' at F (C:\\xampp\\htdocs\\laravel-project\\quickstart-v2\\node_modules\\which\\which.js:68:19)\n' +
npm ERR! gyp verb `which` failed ' at E (C:\\xampp\\htdocs\\laravel-project\\quickstart-v2\\node_modules\\which\\which.js:80:29)\n' +
npm ERR! gyp verb `which` failed ' at C:\\xampp\\htdocs\\laravel-project\\quickstart-v2\\node_modules\\which\\which.js:89:16\n' +
npm ERR! gyp verb `which` failed ' at C:\\xampp\\htdocs\\laravel-project\\quickstart-v2\\node_modules\\isexe\\index.js:42:5\n' +
npm ERR! gyp verb `which` failed ' at C:\\xampp\\htdocs\\laravel-project\\quickstart-v2\\node_modules\\isexe\\windows.js:36:5\n' +
npm ERR! gyp verb `which` failed ' at FSReqCallback.oncomplete (fs.js:158:21)',
npm ERR! gyp verb `which` failed code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb could not find "D:\Library\Python\Python27\python.exe". checking python launcher
npm ERR! gyp verb could not find "D:\Library\Python\Python27\python.exe". 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 "D:\Library\Python\Python27\python.exe", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack at PythonFinder.failNoPython (C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack at callback (C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\node-gyp\node_modules\graceful-fs\polyfills.js:299:20)
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (fs.js:158:21)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\xampp\\htdocs\\laravel-project\\quickstart-v2\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\xampp\htdocs\laravel-project\quickstart-v2\node_modules\node-sass
npm ERR! gyp ERR! node -v v12.14.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
Any suggestions on how to fix it or how to interpret the error?
Thank you in advance!
Cheers!

gyp verb `which` failed Error: not found: python2 for yarn add node-sass command

i'm working on a project and need to add sass loader to my project dependency which needs node sass in order to work. i installed sass loader with
yarn add sass-loader#6.0.6
and it worked well. But when i tried to install node-sass using this:
yarn add node-sass#4.5.3
warning " > react-modal#2.2.2" has incorrect peer dependency "react-dom#^0.14.0 || ^15.0.0".
[4/4] Building fresh packages...
[-/3] ⢀ waiting...
[-/3] ⠠ waiting...
error C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
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.8.0
gyp info using node#10.16.3 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure [],
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\IT\Desktop\react-course-projects\indecision-app\node_modules\which\which.js:13:12)
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed stack:
gyp verb `which` failed 'Error: not found: python\n at getNotFoundError
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 verb check python version `C:\Python27\python.exe -c "import sys; print "2.7.0
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.16.3
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\node-sass\\build',
gyp info spawn args '-Goutput_dir=.' ]
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\IT\.node-gyp\10.16.3
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp ERR! build error
gyp ERR! stack Error: Command failed: reg query "HKLM\Software\Microsoft\MSBuild\ToolsVersions" /s /reg:32
gyp ERR! stack 'reg' is not recognized as an internal or external command,
gyp ERR! stack operable program or batch file.
gyp ERR! stack
gyp ERR! stack Can't find "msbuild.exe". Do you have Microsoft Visual Studio C++ 2008+ installed?gyp ERR! stack at C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-gyp\lib\build.js:142:25
"C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-sass
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok`enter code here`
i tried removing node modules and installing it back i didn't work
node -v 10.16.0
npm -v 6.9.0
Looks like sass-loader#6.0.6 uses an older node-sass dependency that isn't supported by node-sass. I'd try using sass-loader#latest to see if it's using at least node-sass 4.9 for Node 10 support https://github.com/sass/node-sass#supported-nodejs-versions-vary-by-release-please-consult-the-releases-page-below-is-a-quick-guide-for-minimum-support

How to fix: gyp ERR! stack Error: Can't find Python executable "python"'

I've removed node modules and reinstall it but not solving the problem. If I run yarn add node-sass, the following error comes up in my terminal
gyp verb `which` failed at C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed stack:
gyp verb `which` failed 'Error: not found: python\n at getNotFoundError (C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\which\\which.js:13:12)\n at F (C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\which\\which.js:68:19)\n at E (C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\which\\which.js:80:29)\n at C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\which\\which.js:89:16\n at C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\isexe\\index.js:42:5\n at C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:153: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\IT\Desktop\react-course-projects\indecision-app\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at callback (C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\graceful-fs\polyfills.js:295:20)
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:153:21)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-sass
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
node and npm version are
node- v 10.16.0
npm -v 6.9.0
Follow the step:
npm install -g node-gyp
npm install --global --production windows-build-tools
this is the new error i got from running the last command you gave me
Error: spawnSync powershell.exe ENOENT
at Object.spawnSync (internal/child_process.js:1002:20)
at Object.spawnSync (child_process.js:614:24)
at spawnSync (C:\Users\AKA\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\in-gfw\lib\geo.js:67:36)
at Object.queryRegFromPowershell (C:\Users\AKA\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\in-gfw\lib\geo.js:73:3)
at loop (C:\Users\AKA\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\in-gfw\lib\geo.js:113:16)
at opts.shift (C:\Users\AKA\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\in-gfw\lib\geo.js:116:7)
at spawn (C:\Users\AKA\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\in-gfw\lib\geo.js:100:5)
at spawnSync (C:\Users\AKA\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\in-gfw\lib\geo.js:68:2)
at Object.queryRegFromRegExe (C:\Users\AKA\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\in-gfw\lib\geo.js:96:3)
at loop (C:\Users\AKA\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\in-gfw\lib\geo.js:113:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! windows-build-tools#4.0.0 postinstall: `node ./dist/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the windows-build-tools#4.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

How do I fix this super long error in Yarn?

How do I fix this long error in Yarn when I try to install the dependencies and modules? I'm not even sure how to interpret it. I think it's giving me 3 different errors, but I don't know which to focus on first. One 'error' (?) says it could not find Python2, but then it did find it later. I do have \python2\python.exe and \python3\python.exe, but Python 3 is first in my path. The last line says something is optional, but it didn't clarify which module it was talking about, when there appears to be several errors. One 'error' refers to Microsoft SDK, but the project was created by someone on a Macintosh! Why would it depend on Windows?
I think I dislike Yarn already. It's excessively verbose, unnecessarily repetitive with 'gyp verb' and way too many backslashes, and completely vague.
C:\Users\Chloe\workspace\catalyst_research>yarn install
yarn install v1.5.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents#1.1.2: The platform "win32" is incompatible with this module.
info "fsevents#1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
[5/5] Building fresh packages...
[1/2] ? node-zopfli: Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
[2/2] ? node-sass: Build failed with error code: 1
[-/2] ? waiting...
[-/2] ? waiting...
error An unexpected error occurred: "C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass: Command failed.
Exit code: 1
Command: C:\\windows\\system32\\cmd.exe
Arguments: /d /s /c node scripts/build.js
Directory: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass
Output:
Building: C:\\Program Files\
odejs\
ode.exe C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\bin\
ode-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\\\
odejs\\\
ode.exe',
gyp verb cli 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\bin\\\
ode-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#9.10.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 (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:13:12)
gyp verb `which` failed at F (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:68:19)
gyp verb `which` failed at E (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:80:29)
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:89:16
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\isexe\\index.js:42:5
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\isexe\\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:170:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:13:12)
gyp verb `which` failed at F (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:68:19)
gyp verb `which` failed at E (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:80:29)
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:89:16
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\isexe\\index.js:42:5
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\isexe\\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:170:21)
gyp verb `which` failed stack: 'Error: not found: python2\
at getNotFoundError (C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\which\\\\which.js:13:12)\
at F (C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\which\\\\which.js:68:19)\
at E (C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\which\\\\which.js:80:29)\
at C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\which\\\\which.js:89:16\
at C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\isexe\\\\index.js:42:5\
at C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\isexe\\\\windows.js:36:5\
at FSReqWrap.oncomplete (fs.js:170:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable \"python\" in the PATH
gyp verb `which` succeeded python C:\\Python36\\python.EXE
gyp verb check python version `C:\\Python36\\python.EXE -c \"import platform; print(platform.python_version());\"` returned: \"3.6.5\\r\
\"
gyp verb could not find \"C:\\Python36\\python.EXE\". checking python launcher
gyp verb check python launcher python executable found: \"C:\\\\Python27\\\\python.exe\"
gyp verb check python version `C:\\Python27\\python.exe -c \"import platform; print(platform.python_version());\"` returned: \"2.7.14\\r\
\"
gyp verb get node dir no --target version specified, falling back to host node version: 9.10.1
gyp verb command install [ '9.10.1' ]
gyp verb install input version string \"9.10.1\"
gyp verb install installing version: 9.10.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check \"installVersion\"
gyp verb got \"installVersion\" 9
gyp verb needs \"installVersion\" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 9.10.1
gyp verb build dir attempting to create \"build\" dir: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build
gyp verb build dir \"build\" dir needed to be created? C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build
gyp verb Not using VS2017: Could not use PowerShell to find VS2017
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\config.gypi
gyp verb config.gypi checking for gypi file: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\config.gypi
gyp verb common.gypi checking for gypi file: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\common.gypi
gyp verb gyp gyp format was not specified; forcing \"msvs\"
gyp info spawn C:\\Python27\\python.exe
gyp info spawn args [ 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\gyp\\\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-sass\\\\build\\\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1\\\\include\\\
ode\\\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1',
gyp info spawn args '-Dnode_gyp_dir=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1\\\\<(target_arch)\\\
ode.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-sass\\\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\\Users\\Chloe\\.node-gyp\\9.10.1
gyp verb found first Solution file build/binding.sln
gyp verb could not find \"msbuild.exe\" in PATH - finding location in registry
gyp info spawn C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.
Build started 3/30/2018 10:40:15 PM.
Project \"C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln\" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration \"Release|x64\".
MSBUILD : error MSB3411: Could not load the Visual C++ component \"VCBuild.exe\". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server
2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. [C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln]
Done Building Project \"C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln\" (default targets) -- FAILED.
Build FAILED.
\"C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln\" (default target) (1) ->
(libsass target) ->
MSBUILD : error MSB3411: Could not load the Visual C++ component \"VCBuild.exe\". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. [C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.02
gyp ERR! build error
gyp ERR! stack Error: `C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\lib\\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command \"C:\\\\Program Files\\\
odejs\\\
ode.exe\" \"C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\bin\\\
ode-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"
gyp ERR! cwd C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
warning Error running install script for optional dependency: "C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli: Command failed.
Exit code: 1
Command: C:\\windows\\system32\\cmd.exe
Arguments: /d /s /c node-pre-gyp install --fallback-to-build
Directory: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#0.6.36
node-pre-gyp info using node#9.10.1 | win32 | x64
node-pre-gyp info check checked for \"C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64\\zopfli.node\" (not found)
node-pre-gyp http GET https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-win32-x64.tar.gz
node-pre-gyp http 403 https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli#2.0.2 and node#9.10.1 (node-v59 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-win32-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp#3.6.2
gyp info using node#9.10.1 | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#3.6.2
gyp info using node#9.10.1 | win32 | x64
gyp info spawn C:\\Python27\\python.exe
gyp info spawn args [ 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\gyp\\\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli\\\\build\\\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1\\\\include\\\
ode\\\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1',
gyp info spawn args '-Dnode_gyp_dir=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1\\\\<(target_arch)\\\
ode.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli\\\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#3.6.2
gyp info using node#9.10.1 | win32 | x64
gyp info spawn C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.
MSBUILD : error MSB3411: Could not load the Visual C++ component \"VCBuild.exe\". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server
2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. [C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\build\\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: `C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\lib\\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command \"C:\\\\Program Files\\\
odejs\\\
ode.exe\" \"C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\bin\\\
ode-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli\\\\lib\\\\binding\\\
ode-v59-win32-x64\\\\zopfli.node\" \"--module_name=zopfli\" \"--module_path=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli\\\\lib\\\\binding\\\
ode-v59-win32-x64\"
gyp ERR! cwd C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\\Program Files\
odejs\
ode.exe C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\bin\
ode-gyp.js build --fallback-to-build --module=C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64\\zopfli.node --module_name=zopfli --module_path=C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-pre-gyp\\lib\\util\\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:180:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:936:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Windows_NT 6.3.9600
node-pre-gyp ERR! command \"C:\\\\Program Files\\\
odejs\\\
ode.exe\" \"C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-pre-gyp\\\\bin\\\
ode-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli
node-pre-gyp ERR! node -v v9.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute 'C:\\Program Files\
odejs\
ode.exe C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\bin\
ode-gyp.js build --fallback-to-build --module=C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64\\zopfli.node --module_name=zopfli --module_path=C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64' (1)"
info This module is OPTIONAL, you can safely ignore this error
Try following steps.
delete node_modules folder and package-lock.json
running npm install --global windows-build-tools
reinstalling node modules with npm install

Resources