I get a bunch of errors when running npm install - javascript

I'm trying to get into full stack web dev, so I'm fairly new. Just recently I was installing node.js onto my laptop, I'm following this course and I had to clone a github repo onto my bash terminal and run the npm install but it came up with a whole list of errors.
I tried running things on a Virtual Environment, reinstalling node.js among some possible solutions online but with no luck. I'm hoping someone would help me out here, I'd appreciate that. Below is the log for my errors:
Thanks a lot
npm ERR! path C:\Users\Kevin\OneDrive\Desktop\code\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: C:\Program Files\nodejs\node.exe C:\Users\Kevin\OneDrive\Desktop\code\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 'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli 'C:\\Users\\Kevin\\OneDrive\\Desktop\\code\\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.5.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\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:195:21)
npm ERR! gyp verb `which` failed python2 Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:195: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:397:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
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\\Kevin\\OneDrive\\Desktop\\code\\javascript\\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\Kevin\OneDrive\Desktop\code\javascript\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.5.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```

It seems like this Node version requires Python 2x and you have Python 3x added to the path. Try downloading Python 2x and adding it to the path.

Related

error trying to install npm i mapbox/blend in node

i am trying to install mapbox/blend, but when i run npm i #mapbox/blend finish with error and does not install
node -v --> v16.15.1
error log:
PS C:\Users\Adrian\Desktop\85k> npm i #mapbox/blend
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code 1
npm ERR! path C:\Users\Adrian\Desktop\85k\node_modules\mapnik
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Adrian\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Adrian\Desktop\85k\node_modules\mapnik\lib\binding\mapnik.node --module_name=mapnik --module_path=C:\Users\Adrian\Desktop\85\node_modules\mapnik\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp#1.0.9
npm ERR! node-pre-gyp info using node#16.15.1 | win32 | x64
npm ERR! node-pre-gyp info check checked for "C:\Users\Adrian\Desktop\85k\node_modules\mapnik\lib\binding\mapnik.node" (not found)
npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/mapnik/v4.5.9/Release/win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 403 Forbidden on https://mapbox-node-binary.s3.amazonaws.com/mapnik/v4.5.9/Release/win32-x64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for mapnik#4.5.9 and node#16.15.1 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 403 Forbidden on https://mapbox-node-binary.s3.amazonaws.com/mapnik/v4.5.9/Release/win32-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#8.4.1
npm ERR! gyp info using node#16.15.1 | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#8.4.1
npm ERR! gyp info using node#16.15.1 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.1 found at "C:\Python310\python.exe"
npm ERR! gyp info find VS using VS2019 (16.11.32510.428) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Python310\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\\Users\\Adrian\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\Adrian\\Desktop\\85k\\node_modules\\mapnik\\build\\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\Adrian\\Desktop\\85k\\node_modules\\mapnik\\common.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\Adrian\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\Adrian\\AppData\\Local\\node-gyp\\Cache\\16.15.1\\include\\node\\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\Users\\Adrian\\AppData\\Local\\node-gyp\\Cache\\16.15.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\Adrian\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Adrian\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.15.1\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\\Users\\Adrian\\Desktop\\85k\\node_modules\\mapnik',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'C:\\Users\\Adrian\\Desktop\\85\\node_modules\\mapnik\\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! "mapnik-config" no se reconoce como un comando interno o externo,
npm ERR! programa o archivo por lotes ejecutable.
npm ERR! gyp: Call to 'mapnik-config --includes' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Adrian\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:259:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19043
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Adrian\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Adrian\\Desktop\\85\\node_modules\\mapnik\\lib\\binding\\mapnik.node" "--module_name=mapnik" "--module_path=C:\\Users\\Adrian\\Desktop\\85\\node_modules\\mapnik\\lib\\binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
npm ERR! gyp ERR! cwd C:\Users\Adrian\Desktop\85\node_modules\mapnik
npm ERR! gyp ERR! node -v v16.15.1
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Adrian\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Adrian\Desktop\85k\node_modules\mapnik\lib\binding\mapnik.node --module_name=mapnik --module_path=C:\Users\Adrian\Desktop\85k\node_modules\mapnik\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\Adrian\Desktop\85k\node_modules\#mapbox\node-pre-gyp\lib\util\compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19043
npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Adrian\\Desktop\\85\\node_modules\\#mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd C:\Users\Adrian\Desktop\85\node_modules\mapnik
npm ERR! node-pre-gyp ERR! node -v v16.15.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.9
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Adrian\AppData\Local\npm-cache\_logs\2022-06-10T21_58_47_396Z-debug-0.log

gyp ERR! stack Error: Cannot find module 'psl'

I'm trying to run an existing project but I keep getting this error:
error logs image
when I try to run "npm i", can someone please explain what this error is about or guide me through the steps to solve it?
TIA
in case you can't see the logs:
npm ERR! code 7
npm ERR! path C:\Users\Kumail\Documents\XORD\alon\alon\node_modules\tree-sitter-c
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#7.1.2
npm ERR! gyp info using node#14.17.6 | win32 | x64
npm ERR! gyp info find Python using Python version 3.7.3 found at "C:\Users\Kumail\Anaconda3\python.exe"
npm ERR! gyp ERR! UNCAUGHT EXCEPTION
npm ERR! gyp ERR! stack Error: Cannot find module 'psl'
npm ERR! gyp ERR! stack Require stack:
npm ERR! gyp ERR! stack - C:\Users\Kumail\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\pubsuffix-psl.js
npm ERR! gyp ERR! stack - C:\Users\Kumail\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\cookie.js
npm ERR! gyp ERR! stack - C:\Users\Kumail\AppData\Roaming\npm\node_modules\npm\node_modules\request\lib\cookies.js
npm ERR! gyp ERR! stack - C:\Users\Kumail\AppData\Roaming\npm\node_modules\npm\node_modules\request\index.js
npm ERR! gyp ERR! stack - C:\Users\Kumail\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\install.js
npm ERR! gyp ERR! stack - C:\Users\Kumail\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\node-gyp.js
npm ERR! gyp ERR! stack - C:\Users\Kumail\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js
npm ERR! gyp ERR! stack at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
npm ERR! gyp ERR! stack at Function.Module._load (internal/modules/cjs/loader.js:745:27)
npm ERR! gyp ERR! stack at Module.require (internal/modules/cjs/loader.js:961:19)
npm ERR! gyp ERR! stack at require (internal/modules/cjs/helpers.js:92:18)
npm ERR! gyp ERR! stack at Object. (C:\Users\Kumail\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\pubsuffix-psl.js:32:11)
npm ERR! gyp ERR! stack at Module._compile (internal/modules/cjs/loader.js:1072:14)
npm ERR! gyp ERR! stack at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
npm ERR! gyp ERR! stack at Module.load (internal/modules/cjs/loader.js:937:32)
npm ERR! gyp ERR! stack at Function.Module._load (internal/modules/cjs/loader.js:778:12)
npm ERR! gyp ERR! stack at Module.require (internal/modules/cjs/loader.js:961:19)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Kumail\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\Kumail\Documents\XORD\alon\alon\node_modules\tree-sitter-c
npm ERR! gyp ERR! node -v v14.17.6
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! Node-gyp failed to build your package.
npm ERR! gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Kumail\AppData\Local\npm-cache_logs\2021-11-08T10_21_18_719Z-debug.log
I can't comment because I don't have enough reputation but try running npm install psl and then npm install because the error mentions a package called psl doesn't exist when the code is asking for it. It could be a missing dependency for one of the libraries you have. Let me know how that goes :)

Please help me to understand why an error occurs when creating a vue project

Please help me figure it out? An error occurs when creating a vue project.
I am showing just what I chose when creating a vue project. I can't understand why the error is coming out. And i'm showing the configuration VS CODE.
I am showing just what I chose when creating a vue project. I can't understand why the error is coming out. And i'm showing the configuration VS CODE.
$ vue create myapp
Vue CLI v4.5.13
? Please pick a preset: Manually select features
? Check the features needed for your project: (Press <space> to select, <a> to? Check the features needed for your project: Choose Vue version, Babel, CSS P
re-processors, Linter
? Choose a version of Vue.js that you want to start the project with (Use arro? Choose a version of Vue.js that you want to start the project with 2.x
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supporte? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supporte? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supporte
d by default): Sass/SCSS (with node-sass)
? Pick a linter / formatter config: Airbnb
? Pick additional lint features: (Press <space> to select, <a> to toggle all,
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys)? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated con
fig files
? Save this as a preset for future projects? No
npm ERR! code 1
npm ERR! path C:\vue-projects\Ud\0 fifth VUE JS\myapp\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:\vue-projects\Ud\0 fifth VUE JS\myapp\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:\\vue-projects\\Ud\\0 fifth VUE JS\\myapp\\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.0.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:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:194:21)
npm ERR! gyp verb `which` failed python2 Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:194: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:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:194:21)
npm ERR! gyp verb `which` failed python Error: not found: python
npm ERR! gyp verb `which` failed at getNotFoundError (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:194: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:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack at callback (C:\vue-projects\Ud\0 fifth
VUE JS\myapp\node_modules\graceful-fs\polyfills.js:299:20)
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:194:21)
npm ERR! gyp ERR! System Windows_NT 6.3.9600
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\vue-projects\\Ud\\0 fifth VUE JS\\myapp\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\vue-projects\Ud\0 fifth VUE JS\myapp\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.0.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\Ulys\AppData\Local\npm-cache\_logs\2021-09-13T20_23_21_730Z-debug.log
ERROR command failed: npm install --loglevel error --legacy-peer-deps
This is my VS CODE config:
{
"liveSassCompile.settings.generateMap": false,
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"autoprefix": "last 5 versions",
"extensionName": ".css",
"savePath": "css"
}
],
"javascript.suggest.names": false,
"editor.lineHeight": 16,
"editor.renderWhitespace": "all",
"editor.tabSize": 2,
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"vue-html": "html"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"html",
],
"emmet.triggerExpansionOnTab": true,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"files.eol": "\n",
"terminal.integrated.fontSize": 12,
"workbench.startupEditor": "none",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.trimTrailingWhitespace": true,
"editor.minimap.enabled": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"diffEditor.ignoreTrimWhitespace": true,
"window.titleBarStyle": "custom",
"breadcrumbs.enabled": false,
"editor.fontLigatures": true,
"gitlens.views.repositories.location": "scm",
"gitlens.views.fileHistory.location": "gitlens",
"gitlens.views.lineHistory.location": "gitlens",
"gitlens.views.compare.location": "gitlens",
"gitlens.views.search.location": "gitlens",
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
"workbench.editor.showTabs": true,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 500,
"eslint.alwaysShowStatus": true,
"eslint.autoFixOnSave": true,
"npm.enableScriptExplorer": true,
"editor.largeFileOptimizations": false,
"editor.formatOnType": true,
"editor.formatOnPaste": true,
"terminal.external.windowsExec": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.defaultProfile.windows": "Git Bash",
"editor.wordWrap": "on"
}
The error is a side effect of installing node-sass (i.e., selecting CSS Pre-processors, and Sass/SCSS (with node-sass)) without Python installed.
node-sass's postinstall uses node-gyp, which requires Python, so if you don't have the python binary available in the environment path, the postinstall fails.
node-sass is not part of the default preset, so you wouldn't see the error installing the default.
Solution 1
Install Python. The package installers usually add the python binary to the environment path. Make sure to restart any open terminals to pick up the updated environment.
Solution 2
Use Vue CLI 5.x, which replaces node-sass (deprecated) with sass.
You can upgrade to 5.0.0-beta.3 (tagged next) with:
npm i -g #vue/cli#next
Or run it with npx:
npx #vue/cli#next create my-vue-project

when I clone the code from git and run npm install on the machine, the error is like this. please help me

when I clone the code from git and run npm install on the machine, the error is like this. please help me
npm ERR! code 1
npm ERR! path C:\Users\ADMIN\Desktop\weather_app\complete-node-bootcamp\4-natours\after-section-14\node_modules\deasync
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node ./build.js
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#3.8.0
npm ERR! gyp info using node#14.15.4 | win32 | x64
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\ADMIN\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\ADMIN\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack at callback (C:\Users\ADMIN\node_modules\graceful-fs\polyfills.js:299:20)
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (fs.js:183:21)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ADMIN\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\ADMIN\Desktop\weather_app\complete-node-bootcamp\4-natours\after-section-14\node_modules\deasync
npm ERR! gyp ERR! node -v v14.15.4
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ADMIN\AppData\Local\npm-cache\_logs\2021-07-03T16_30_43_130Z-debug.log

Dependency error not making sense as I thought package reference would mean the correct react version is used

I'm getting this error when I try to install packages:
% npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: evolution#0.1.0
npm ERR! Found: react#16.14.0
npm ERR! node_modules/react
npm ERR! react#"^16.13.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^17.0.0" from react-d3-speedometer#1.0.1
npm ERR! node_modules/react-d3-speedometer
npm ERR! react-d3-speedometer#"^1.0.1" 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.
npm ERR!
npm ERR! See /Users/me/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2021-04-30T17_16_10_808Z-debug.log
I see my packages.json has both react#"^16.13.1" and react-d3-speedometer#1.0.1. I thought the ^ would force react to get the latest build. Is this correct or should I change my packages.json to react#"^17.0.0".
When I run npm install --legacy-peer-deps I get this in the log(I only included sections as the log is too big):
npm ERR! code 1
npm ERR! path /Users/me/Downloads/EvolutionUatFront-main/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js
npm ERR! Building: /usr/local/Cellar/node/16.0.0_1/bin/node /Users/me/Downloads/EvolutionUatFront-main/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! c++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.5.5"' -I/Users/me/.node-gyp/16.0.0/include/node -I/Users/me/.node-gyp/16.0.0/src -I/Users/me/.node-gyp/16.0.0/deps/openssl/config -I/Users/me/.node-gyp/16.0.0/deps/openssl/openssl/include -I/Users/me/.node-gyp/16.0.0/deps/uv/include -I/Users/me/.node-gyp/16.0.0/deps/zlib -I/Users/me/.node-gyp/16.0.0/deps/v8/include -I../src/libsass/include -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp
npm ERR! c++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.5.5"' -I/Users/me/.node-gyp/16.0.0/include/node -I/Users/me/.node-gyp/16.0.0/src -I/Users/me/.node-gyp/16.0.0/deps/openssl/config -I/Users/me/.node-gyp/16.0.0/deps/openssl/openssl/include -I/Users/me/.node-gyp/16.0.0/deps/uv/include -I/Users/me/.node-gyp/16.0.0/deps/zlib -I/Users/me/.node-gyp/16.0.0/deps/v8/include -I../src/libsass/include -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast_fwd_decl.o.d.raw -c -o Release/obj.target/libsass/src/libsass/src/ast_fwd_decl.o ../src/libsass/src/ast_fwd_decl.cpp
npm ERR! c++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.5.5"' -I/Users/me/.node-gyp/16.0.0/include/node -I/Users/me/.node-gyp/16.0.0/src -I/Users/me/.node-gyp/16.0.0/deps/openssl/config -I/Users/me/.node-gyp/16.0.0/deps/openssl/openssl/include -I/Users/me/.node-gyp/16.0.0/deps/uv/include -I/Users/me/.node-gyp/16.0.0/deps/zlib -I/Users/me/.node-gyp/16.0.0/deps/v8/include -I../src/libsass/include -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/backtrace.o.d.raw -c -o Release/obj.target/libsass/src/libsass/src/backtrace.o ../src/libsass/src/backtrace.cpp
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli '/usr/local/Cellar/node/16.0.0_1/bin/node',
npm ERR! gyp verb cli '/Users/me/Downloads/EvolutionUatFront-main/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.0.0 | darwin | 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 succeeded python2 /usr/bin/python2
npm ERR! gyp verb check python version /usr/bin/python2 -c "import sys; print "2.7.16 npm ERR! gyp verb check python version .%s.%s" % sys.version_info[:3];" returned: %j
npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 16.0.0
npm ERR! gyp verb command install [ '16.0.0' ]
npm ERR! gyp verb install input version string "16.0.0"
npm ERR! gyp verb install installing version: 16.0.0
npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed
npm ERR! gyp verb install version is already installed, need to check "installVersion"
npm ERR! gyp verb got "installVersion" 9
npm ERR! gyp verb needs "installVersion" 9
npm ERR! gyp verb install version is good
npm ERR! gyp verb get node dir target node version installed: 16.0.0
npm ERR! gyp verb build dir attempting to create "build" dir: /Users/me/Downloads/EvolutionUatFront-main/node_modules/node-sass/build
npm ERR! gyp verb build dir "build" dir needed to be created? /Users/me/Downloads/EvolutionUatFront-main/node_modules/node-sass/build
npm ERR! gyp verb build/config.gypi creating config file
npm ERR! gyp verb build/config.gypi writing out config file: /Users/me/Downloads/EvolutionUatFront-main/node_modules/node-sass/build/config.gypi
npm ERR! (node:81246) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use node --trace-deprecation ... to show where the warning was created)
npm ERR! gyp verb config.gypi checking for gypi file: /Users/me/Downloads/EvolutionUatFront-main/node_modules/node-sass/config.gypi
npm ERR! gyp verb common.gypi checking for gypi file: /Users/me/Downloads/EvolutionUatFront-main/node_modules/node-sass/common.gypi
npm ERR! gyp verb gyp gyp format was not specified; forcing "make"
npm ERR! gyp info spawn /usr/bin/python2
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/me/Downloads/EvolutionUatFront-main/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/me/Downloads/EvolutionUatFront-main/node_modules/node-sass/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/me/Downloads/EvolutionUatFront-main/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/me/.node-gyp/16.0.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/me/.node-gyp/16.0.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/me/Downloads/EvolutionUatFront-main/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/me/.node-gyp/16.0.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/me/Downloads/EvolutionUatFront-main/node_modules/node-sass',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp verb command build []
npm ERR! gyp verb build type Release
npm ERR! gyp verb architecture x64
npm ERR! gyp verb node dev dir /Users/me/.node-gyp/16.0.0
npm ERR! gyp verb which succeeded for make /usr/bin/make
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/libsass/src/ast.cpp:2:
npm ERR! ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' of type 'const std::__1::basic_string' creates a copy from type 'const std::__1::basic_string' [-Wrange-loop-analysis]
npm ERR! for (const auto numerator : numerators)
npm ERR! ^
npm ERR! ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::__1::basic_string &' to prevent copying
npm ERR! for (const auto numerator : numerators)
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~
npm ERR! &
npm ERR! ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' of type 'const std::__1::basic_string' creates a copy from type 'const std::__1::basic_string' [-Wrange-loop-analysis]
npm ERR! for (const auto denominator : denominators)
npm ERR! ^
npm ERR! ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::__1::basic_string &' to prevent copying
npm ERR! for (const auto denominator : denominators)
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! &
npm ERR! 2 warnings generated.
npm ERR! In file included from ../src/libsass/src/values.cpp:3:
npm ERR! In file included from ../src/libsass/src/values.hpp:4:
npm ERR! ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' of type 'const std::__1::basic_string' creates a copy from type 'const std::__1::basic_string' [-Wrange-loop-analysis]
npm ERR! for (const auto numerator : numerators)
npm ERR! ^
npm ERR! ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::__1::basic_string &' to prevent copying
npm ERR! for (const auto numerator : numerators)
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~
npm ERR! &
npm ERR! ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' of type 'const std::__1::basic_string' creates a copy from type 'const std::__1::basic_string' [-Wrange-loop-analysis]
npm ERR! for (const auto denominator : denominators)
npm ERR! ^
npm ERR! ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::__1::basic_string &' to prevent copying
npm ERR! for (const auto denominator : denominators)
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! &
npm ERR! 2 warnings generated.
npm ERR! In file included from ../src/binding.cpp:1:
npm ERR! In file included from ../../nan/nan.h:56:
npm ERR! In file included from /Users/me/.node-gyp/16.0.0/include/node/node.h:63:
npm ERR! In file included from /Users/me/.node-gyp/16.0.0/include/node/v8.h:30:
npm ERR! /Users/me/.node-gyp/16.0.0/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
npm ERR! ~~~~~^~~~~~~~~~~
npm ERR! remove_cv
npm ERR! /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits:697:50: note: 'remove_cv' declared here
npm ERR! template struct _LIBCPP_TEMPLATE_VIS remove_cv
npm ERR! ^
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/binding/src/binding.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/me/Downloads/EvolutionUatFront-main/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:365:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 20.3.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/16.0.0_1/bin/node" "/Users/me/Downloads/EvolutionUatFront-main/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd /Users/me/Downloads/EvolutionUatFront-main/node_modules/node-sass
npm ERR! gyp ERR! node -v v16.0.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! /Users/me/.npm/_logs/2021-04-30T19_06_04_928Z-debug.log

Categories