Node-Saas error on installation on my personal project - node.js

I tried to add node-sass to my project using yarn add node-sass, but I am getting this error can anyone help
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
[-/7] â „ waiting...
[-/7] â „ waiting...
[7/7] â „ node-sass
[6/7] â „ pngcrush-bin
error /Users/user/Desktop/project/node_modules/gulp-sass/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /Users/user/Desktop/project/node_modules/gulp-sass/node_modules/node-sass
Output:
Building: /usr/local/Cellar/node#16/16.13.0/libexec/node /Users/user/Desktop/project/node_modules/gulp-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/usr/local/Cellar/node#16/16.13.0/libexec/node',
gyp verb cli '/Users/user/Desktop/project/node_modules/gulp-sass/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp#3.8.0
gyp info using node#16.13.0 | darwin | 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 "/usr/local/opt/python#3.9/bin/python3" in the PATH
gyp verb `which` succeeded /usr/local/opt/python#3.9/bin/python3 /usr/local/opt/python#3.9/bin/python3
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /usr/local/opt/python#3.9/bin/python3 -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:397:12)
gyp ERR! stack at ChildProcess.emit (node:events:390:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
gyp ERR! System Darwin 21.1.0
gyp ERR! command "/usr/local/Cellar/node#16/16.13.0/libexec/node" "/Users/user/Desktop/project/node_modules/gulp-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/user/Desktop/project/node_modules/gulp-sass/node_modules/node-sass
gyp ERR! node -v v16.13.0
Fixed!

I just had a problem with the version of Node on my laptop.

Related

How do I install node-sass on MacOSX M1?

I have an error with node-sass when trying to do a yarn on my M1 MacBook.
I have this error :
error /Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/node_modules/node-sass
Output:
Building: /opt/homebrew/Cellar/node/17.8.0/bin/node /Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/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 '/opt/homebrew/Cellar/node/17.8.0/bin/node',
gyp verb cli '/Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/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#17.8.0 | darwin | arm64
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 "/usr/bin/python3" in the PATH
gyp verb `which` succeeded /usr/bin/python3 /usr/bin/python3
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /usr/bin/python3 -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:1090:16)
gyp ERR! stack at Socket.<anonymous> (node:internal/child_process:449:11)
gyp ERR! stack at Socket.emit (node:events:527:28)
gyp ERR! stack at Pipe.<anonymous> (node:net:709:12)
gyp ERR! System Darwin 21.4.0
gyp ERR! command "/opt/homebrew/Cellar/node/17.8.0/bin/node" "/Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/node_modules/node-sass
gyp ERR! node -v v17.8.0
I tried to do it with node 12 & 14 too.
and in the package.json I have this :
"node-sass": "^4.11.0",
"sass-loader": "^9.0.3",
I tried different versions of node-sass but nothings work.
Everytime I try, I delete the /node_modules, package-lock.json and the yarn.lock
Do someone have any idea on how to fix this ?
Thank you
node-sass is deprecated and many people have had problems installing it with the ARM architecture. Check here for more details: https://sass-lang.com/blog/libsass-is-deprecated. If you can, use sass instead.
yarn add -D sass
I had that fixed by using python2.7.
With pyenv, you can do:
pyenv install 2.7
pyenv local 2.7
Big G is right -- stop using node-sass if you can. If you can't for some reason, there is a long discussion on potential ways to solve related issues here: yarn install failing import sys; print "%s.%s.%s" % sys.version_info[:3] invalid syntax

npm install failed at node-sass command failed

As title. I've maintained a project that web page is developed using Angular.js and some utilities, but something wrong when I use the "npm install" command, and the error log was shown below....
2094 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Gary.Lu\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
2095 verbose node v16.13.1
2096 verbose npm v8.3.0
2097 error code 1
2098 error path C:\Users\Gary.Lu\Documents\ITTS Projects\AXMES\MAIN\ITTS-MES\WEB\node_modules\node-sass
2099 error command failed
2100 error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
2101 error Building: C:\Program Files\nodejs\node.exe C:\Users\Gary.Lu\Documents\MyWeb\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
2102 error gyp info it worked if it ends with ok
2102 error gyp verb cli [
2102 error gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
2102 error gyp verb cli 'C:\\Users\\Gary.Lu\\Documents\\MyWeb\\node_modules\\node-gyp\\bin\\node-gyp.js',
2102 error gyp verb cli 'rebuild',
2102 error gyp verb cli '--verbose',
2102 error gyp verb cli '--libsass_ext=',
2102 error gyp verb cli '--libsass_cflags=',
2102 error gyp verb cli '--libsass_ldflags=',
2102 error gyp verb cli '--libsass_library='
2102 error gyp verb cli ]
2102 error gyp info using node-gyp#3.8.0
2102 error gyp info using node#16.13.1 | win32 | x64
2102 error gyp verb command rebuild []
2102 error gyp verb command clean []
2102 error gyp verb clean removing "build" directory
2102 error gyp verb command configure []
2102 error gyp verb check python checking for Python executable "python2" in the PATH
2102 error gyp verb `which` failed Error: not found: python2
2102 error gyp verb `which` failed at getNotFoundError (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:13:12)
2102 error gyp verb `which` failed at F (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:68:19)
2102 error gyp verb `which` failed at E (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:80:29)
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:89:16
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\isexe\index.js:42:5
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\isexe\windows.js:36:5
2102 error gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
2102 error gyp verb `which` failed python2 Error: not found: python2
2102 error gyp verb `which` failed at getNotFoundError (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:13:12)
2102 error gyp verb `which` failed at F (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:68:19)
2102 error gyp verb `which` failed at E (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:80:29)
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:89:16
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\isexe\index.js:42:5
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\isexe\windows.js:36:5
2102 error gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
2102 error gyp verb `which` failed code: 'ENOENT'
2102 error gyp verb `which` failed }
2102 error gyp verb check python checking for Python executable "python" in the PATH
2102 error gyp verb `which` succeeded python C:\Python310\python.EXE
2102 error gyp ERR! configure error
2102 error gyp ERR! stack Error: Command failed: C:\Python310\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
2102 error gyp ERR! stack File "<string>", line 1
2102 error gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
2102 error gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2102 error gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
2102 error gyp ERR! stack
2102 error gyp ERR! stack at ChildProcess.exithandler (node:child_process:397:12)
2102 error gyp ERR! stack at ChildProcess.emit (node:events:390:28)
2102 error gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
2102 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
2102 error gyp ERR! System Windows_NT 10.0.19044
2102 error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Gary.Lu\\Documents\\MyWeb\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
2102 error gyp ERR! cwd C:\Users\Gary.Lu\Documents\MyWeb\node_modules\node-sass
2102 error gyp ERR! node -v v16.13.1
2102 error gyp ERR! node-gyp -v v3.8.0
2102 error gyp ERR! not ok
2102 error Build failed with error code: 1
2103 verbose exit 1
2104 timing npm Completed in 53164ms
2105 verbose unfinished npm timer reify 1640746055969
2106 verbose unfinished npm timer reify:build 1640746094013
2107 verbose unfinished npm timer build 1640746094014
2108 verbose unfinished npm timer build:deps 1640746094014
2109 verbose unfinished npm timer build:run:postinstall 1640746099176
2110 verbose unfinished npm timer build:run:postinstall:node_modules/node-sass 1640746099176
2111 verbose code 1
2112 error A complete log of this run can be found in:
2112 error C:\Users\Gary.Lu\AppData\Local\npm-cache\_logs\2021-12-29T02_47_34_408Z-debug-0.log
But I didn't met the same erroe when I build another project that using Angular 12. Is it matters or do I missed something that I can't build without it? Could someone guide me to solve it?
I had this problem too,
what I did :
1- npm uninstall node-sass
2- npm i -D sass
3- npm i
This usually happens because your environment has changed since running npm install. Run npm rebuild node-sass to download the binding for your current environment."
So I ran npm rebuild node-sass and that worked! Then npm install and everything went ok.
node-sass require limited Node Version, you need check the node's version is which node-sass compatible.

npm install no longer works but did an hour ago

Can someone please help me understand what is going on here, this loaded fine an hour ago, but now it won't, I've removed the node modules and run npm cache clear --force, but still nothing. This is the error I'm getting. I'm certain it is something really really simple, I am completely new to javascript, so it's likely to be more obvious than you think.
Building: /usr/bin/node /home/rob/Development/vue-getting-started/03-data-and-events/begin/vue-heroes/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 '/home/rob/Development/vue-getting-started/03-data-and-events/begin/vue-heroes/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#14.15.5 | 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 "/home/rob/anaconda3/bin/python3" in the PATH
gyp verb `which` succeeded /home/rob/anaconda3/bin/python3 /home/rob/anaconda3/bin/python3
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /home/rob/anaconda3/bin/python3 -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:308:12)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
gyp ERR! System Linux 5.4.0-65-generic
gyp ERR! command "/usr/bin/node" "/home/rob/Development/vue-getting-started/03-data-and-events/begin/vue-heroes/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/rob/Development/vue-getting-started/03-data-and-events/begin/vue-heroes/node_modules/node-sass
gyp ERR! node -v v14.15.5
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.12.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.12.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/rob/.npm/_logs/2021-02-15T22_46_40_202Z-debug.log
Is there anyone that is familiar with this please, people are suggesting that I install python2.7 and other libraries that are in the error message. I can't read javascript, I'm learning it, but I know this is neither an issue with python2.7 or "node-gyp" as neither of these were installed when I had node running fine. This really is a newbie issue, there must be a simple fix for this.

Every time i try to install a new package i get gyp err syntax error

I was installing firebase, before this I tried installing yarn add react-router-dom, this same thing happened I had to create new project and copy all files again to new project , one thing I noticed
was this happened after adding the project to github, before I added the project to the github repository, if i installed any packages, I didn't get any error,
$ yarn add firebase
yarn add v1.22.5
[1/4] Resolving packages...
warning node-sass > node-gyp > request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[2/4] Fetching packages...
info fsevents#2.3.1: The platform "win32" is incompatible with this module.
info "fsevents#2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#1.2.13: The platform "win32" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.2.1: The platform "win32" is incompatible with this module.
info "fsevents#2.2.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.1.3: The platform "win32" is incompatible with this module.
info "fsevents#2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > #testing-library/user-event#12.6.0" has unmet peer dependency "#testing-library/dom#>=7.21.4".
warning "react-scripts > #typescript-eslint/eslint-plugin > tsutils#3.17.1" has unmet peer dependency "typescript#>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
[1/4] â „ node-sass
[-/4] â „ waiting...
[-/4] â¡€ waiting...
error C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'C:\\Users\\Muhammad\\Desktop\\React projects\\szone-shoppee-project\\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#15.5.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\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:199:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:199: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:\Python38\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python38\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:333:12)
gyp ERR! stack at ChildProcess.emit (node:events:376:20)
gyp ERR! stack at maybeClose (node:internal/child_process:1063:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Muhammad\\Desktop\\React projects\\szone-shoppee-project\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\Muhammad\Desktop\React projects\szone-shoppee-project\node_modules\node-sass
gyp ERR! node -v v15.5.1
gyp ERR! node-gyp -v v3.8.0
You can do either of these two things.
Downgrade Python to 2.x.
Install the packages using npm install --ignore-scripts
NOTE: This will cause npm to stop running scripts defined in the package.json

couldn't run npm ci

node.js - v12.16.2
npm - 6.14.4
OS - windows 10
When I run npm ci i get error.
The complete error log:
npm WARN prepare removing existing node_modules/ before installation
> fsevents#1.2.4 install G:\Agrima\workspace\VoTT\node_modules\fsevents
> node install
> node-sass#4.11.0 install G:\Agrima\workspace\VoTT\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-72_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-72_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> node-sass#4.11.0 postinstall G:\Agrima\workspace\VoTT\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe G:\Agrima\workspace\VoTT\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 'G:\\Agrima\\workspace\\VoTT\\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.16.2 | 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 (G:\Agrima\workspace\VoTT\node_modules\which\which.js:13:12) gyp verb `which` failed at F (G:\Agrima\workspace\VoTT\node_modules\which\which.js:68:19) gyp verb `which` failed at E (G:\Agrima\workspace\VoTT\node_modules\which\which.js:80:29) gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\which\which.js:89:16 gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\isexe\index.js:42:5 gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:167:21) gyp verb `which` failed python2 Error: not found: python2 gyp verb `which` failed at getNotFoundError (G:\Agrima\workspace\VoTT\node_modules\which\which.js:13:12) gyp verb `which` failed at F (G:\Agrima\workspace\VoTT\node_modules\which\which.js:68:19) gyp verb `which` failed at E (G:\Agrima\workspace\VoTT\node_modules\which\which.js:80:29) gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\which\which.js:89:16 gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\isexe\index.js:42:5 gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:167:21) { gyp verb `which` failed stack: 'Error: not found: python2\n' + gyp verb `which` failed ' at getNotFoundError (G:\\Agrima\\workspace\\VoTT\\node_modules\\which\\which.js:13:12)\n'
+ gyp verb `which` failed ' at F (G:\\Agrima\\workspace\\VoTT\\node_modules\\which\\which.js:68:19)\n'
+ gyp verb `which` failed ' at E (G:\\Agrima\\workspace\\VoTT\\node_modules\\which\\which.js:80:29)\n'
+ gyp verb `which` failed ' at G:\\Agrima\\workspace\\VoTT\\node_modules\\which\\which.js:89:16\n' + gyp verb `which` failed ' at G:\\Agrima\\workspace\\VoTT\\node_modules\\isexe\\index.js:42:5\n' + gyp verb `which` failed ' at G:\\Agrima\\workspace\\VoTT\\node_modules\\isexe\\windows.js:36:5\n' + gyp verb `which` failed ' at FSReqCallback.oncomplete (fs.js:167: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:\Program Files\Python36\python.EXE gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Program Files\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:303:12) gyp ERR! stack at ChildProcess.emit (events.js:310:20) gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) gyp ERR! System Windows_NT
10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "G:\\Agrima\\workspace\\VoTT\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd G:\Agrima\workspace\VoTT\node_modules\node-sass gyp ERR! node -v v12.16.2 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass#4.11.0 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass#4.11.0 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\LENOVO\AppData\Roaming\npm-cache\_logs\2020-04-23T05_50_10_745Z-debug.log
Tried to do npm install, etc which was found in other sources, But failed each time.

Resources