Answer the question
In order to leave comments, you need to log in
Error installing gulp-sass package?
Hello! Wanted to describe the problem. When installing the gulp-sass package, an error pops up. Installation is done through node.js with the npm i gulp-sass command. Here is the entire output after typing the command.
> [email protected] install C:\Users\agani\Desktop\Gulp\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases /downloa...
Cannot download " https://github.com/sass/node-sass/releases/downloa... ":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, eg
export HTTP_PROXY= example.com:1234
or configure npm proxy via
npm config set proxyexample.com:8080
> [email protected] postinstall C:\Users\agani\Desktop\Gulp\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe C:\Users\agani\Desktop\Gulp\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\\agani\\Desktop\\Gulp\\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 [email protected]
gyp info using [email protected] | 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\agani\Desktop\Gulp\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\agani \Desktop\Gulp\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\agani\Desktop\Gulp\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\agani\Desktop\Gulp\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\agani\Desktop\Gulp\node_modules\isexe \index.js:42:5
gyp verb `which` failed at C:\Users\agani\Desktop\Gulp\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs. js:166:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\Users\agani\Desktop\Gulp\node_modules\which\which.js:13:12 )
gyp verb `which` failed at F (C:\Users\agani\Desktop\Gulp\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\agani\Desktop \Gulp\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\agani\Desktop\Gulp\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\agani\Desktop\Gulp\node_modules\isexe \index.js:42:5
gyp verb `which` failed at C:\Users\agani\Desktop\Gulp\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs. js:166:21) {
gyp verb `which` failed stack: 'Error: not found: python2\n at getNotFoundError ' +
gyp verb `which` failed '(C:\\Users\\agani\\Desktop\\Gulp \\node_modules\\which\\which.js:13:12)\n at F ' +
gyp verb `which` failed '(C:\\Users\\agani\\Desktop\\Gulp\\node_modules\\which \\which.js:68:19)\n at E ' +
gyp verb `which` failed '(C:\\Users\\agani\\Desktop\\Gulp\\node_modules\\which\\which.js:80:29)\n at ' +
gyp verb `which` failed ' C:\\Users\\agani\\Desktop\\Gulp\\node_modules\\which\\which.js:89:16\n at ' +
gyp verb `which` failed 'C:\\Users\\agani\ \Desktop\\Gulp\\node_modules\\isexe\\index.js:42:5\n at ' +
gyp verb `which` failed 'C:\\Users\\agani\\Desktop\\Gulp\\node_modules\ \isexe\\windows.js:36:5\n at ' +
gyp verb `which` failed 'FSReqCallback.oncomplete (fs.js:166:21)',
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Users\agani\AppData\Local\Programs\Python\Python37-32\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\agani\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", 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:304:12)
gyp ERR! stack at ChildProcess.emit(events.js:196:13)
gyp ERR! stack at maybeClose(internal/child_process.js:1000:16)
gyp ERR! stack at Socket. (internal/child_process.js:405:11)
gyp ERR! stack at Socket.emit (events.js:196:13)
gyp ERR! stack at pipe. (net.js:586:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\agani\\Desktop\\Gulp\\node_modules\\node-gyp\\bin\\node-gyp.js " "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\agani\Desktop\Gulp\node_modules\node-sass
gyp ERR! node -v v12.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents)
: "} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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:
Noticed something python related:
stack Error: Command failed: C:\Users\agani\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
And the fact that the problem is not with node.js
Answer the question
In order to leave comments, you need to log in
judging by the readme from node-gyp from github:
On Windows
Option 1
Install all the required tools and configurations using Microsoft's windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).
Option 2
Install tools and configuration manually:
Install Visual C++ Build Environment: Visual Studio Build Tools (using "Visual C++ build tools" workload) or Visual Studio 2017 Community (using the "Desktop development with C++" workload)
Launch cmd, npm config set msvs_version 2017
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question