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:
Related
I'm trying to install wdio-image-comparison-service on my mac doing npm i wdio-image-comparison-service. It should be easy but I'm getting this error:
npm ERR! code 1
npm ERR! path /Users/cyferd/source/migrationto8/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary
npm ERR! Failed to execute '/opt/homebrew/Cellar/node/19.6.0/bin/node /opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/Users/cyferd/source/migrationto8/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/cyferd/source/migrationto8/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v111 --python=python2.7' (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.10
npm ERR! node-pre-gyp info using node#19.6.0 | darwin | arm64
npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.0/canvas-v2.11.0-node-v111-darwin-unknown-arm64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.0/canvas-v2.11.0-node-v111-darwin-unknown-arm64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas#2.11.0 and node#19.6.0 (node-v111 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.0/canvas-v2.11.0-node-v111-darwin-unknown-arm64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.3.0
npm ERR! gyp info using node#19.6.0 | darwin | arm64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.3.0
npm ERR! gyp info using node#19.6.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.9.6 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
npm ERR! gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/opt/homebrew/lib/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 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/cyferd/source/migrationto8/node_modules/canvas/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/cyferd/Library/Caches/node-gyp/19.6.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/cyferd/Library/Caches/node-gyp/19.6.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/cyferd/Library/Caches/node-gyp/19.6.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/cyferd/source/migrationto8/node_modules/canvas',
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! Package pangocairo was not found in the pkg-config search path.
npm ERR! Perhaps you should add the directory containing `pangocairo.pc'
npm ERR! to the PKG_CONFIG_PATH environment variable
npm ERR! No package 'pangocairo' found
npm ERR! gyp: Call to 'pkg-config pangocairo --libs' 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 (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:325:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:512:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 22.2.0
npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/19.6.0/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=/Users/cyferd/source/migrationto8/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/cyferd/source/migrationto8/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v111" "--python=python2.7"
npm ERR! gyp ERR! cwd /Users/cyferd/source/migrationto8/node_modules/canvas
npm ERR! gyp ERR! node -v v19.6.0
npm ERR! gyp ERR! node-gyp -v v9.3.0
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 '/opt/homebrew/Cellar/node/19.6.0/bin/node /opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/Users/cyferd/source/migrationto8/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/cyferd/source/migrationto8/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v111 --python=python2.7' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/cyferd/source/migrationto8/node_modules/#mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:512:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm ERR! node-pre-gyp ERR! System Darwin 22.2.0
npm ERR! node-pre-gyp ERR! command "/opt/homebrew/Cellar/node/19.6.0/bin/node" "/Users/cyferd/source/migrationto8/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
npm ERR! node-pre-gyp ERR! cwd /Users/cyferd/source/migrationto8/node_modules/canvas
npm ERR! node-pre-gyp ERR! node -v v19.6.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/cyferd/.npm/_logs/2023-02-15T16_33_22_707Z-debug-0.log
Any suggestion? This is working on another Mac, but i7 cpu. I'm not sure if this could be a problem related to M1 or maybe any unknown dependency I should consider.
How do i fix the npm error in my pipeline?
/opt/hostedtoolcache/node/16.13.2/x64/bin/npm ci
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 ERR! code 1
npm ERR! path /home/vsts/work/1/s/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js
npm ERR! Building: /opt/hostedtoolcache/node/16.13.2/x64/bin/node /home/vsts/work/1/s/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 '/opt/hostedtoolcache/node/16.13.2/x64/bin/node',
npm ERR! gyp verb cli '/home/vsts/work/1/s/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.2 | linux | 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 (/home/vsts/work/1/s/node_modules/which/which.js:13:12)
npm ERR! gyp verb which failed at F (/home/vsts/work/1/s/node_modules/which/which.js:68:19)
npm ERR! gyp verb which failed at E (/home/vsts/work/1/s/node_modules/which/which.js:80:29)
npm ERR! gyp verb which failed at /home/vsts/work/1/s/node_modules/which/which.js:89:16
npm ERR! gyp verb which failed at /home/vsts/work/1/s/node_modules/isexe/index.js:42:5
npm ERR! gyp verb which failed at /home/vsts/work/1/s/node_modules/isexe/mode.js:8:5
I am trying npm clean install but this is failing.
ERROR RECEIVED BELOW:
npm install -g composer-cli#0.20
npm ERR! 3 errors generated.
npm ERR! make: *** [Release/obj.target/api/src/node_report.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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.2.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/composer-cli/node_modules/node-report
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
Do not use composer. It's deprecated long time back.
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
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