Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

node sass 4.7.2 can't be installed in my mac #2854

Closed
Arnav2416 opened this issue Mar 5, 2020 · 1 comment
Closed

node sass 4.7.2 can't be installed in my mac #2854

Arnav2416 opened this issue Mar 5, 2020 · 1 comment

Comments

@Arnav2416
Copy link

Downloading binary from https:/sass/node-sass/releases/download/v4.7.2/darwin-x64-79_binding.node
Cannot download "https:/sass/node-sass/releases/download/v4.7.2/darwin-x64-79_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

[email protected] postinstall /Users/arnav/node_modules/node-sass
node scripts/build.js

Building: /usr/local/bin/node /Users/arnav/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/bin/node',
gyp verb cli '/Users/arnav/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] | 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 "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (/Users/arnav/node_modules/which/which.js:13:12)
gyp verb which failed at F (/Users/arnav/node_modules/which/which.js:68:19)
gyp verb which failed at E (/Users/arnav/node_modules/which/which.js:80:29)
gyp verb which failed at /Users/arnav/node_modules/which/which.js:89:16
gyp verb which failed at /Users/arnav/node_modules/isexe/index.js:42:5
gyp verb which failed at /Users/arnav/node_modules/isexe/mode.js:8: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 (/Users/arnav/node_modules/which/which.js:13:12)
gyp verb which failed at F (/Users/arnav/node_modules/which/which.js:68:19)
gyp verb which failed at E (/Users/arnav/node_modules/which/which.js:80:29)
gyp verb which failed at /Users/arnav/node_modules/which/which.js:89:16
gyp verb which failed at /Users/arnav/node_modules/isexe/index.js:42:5
gyp verb which failed at /Users/arnav/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:166:21) {
gyp verb which failed stack: 'Error: not found: python2\n' +
gyp verb which failed ' at getNotFoundError (/Users/arnav/node_modules/which/which.js:13:12)\n' +
gyp verb which failed ' at F (/Users/arnav/node_modules/which/which.js:68:19)\n' +
gyp verb which failed ' at E (/Users/arnav/node_modules/which/which.js:80:29)\n' +
gyp verb which failed ' at /Users/arnav/node_modules/which/which.js:89:16\n' +
gyp verb which failed ' at /Users/arnav/node_modules/isexe/index.js:42:5\n' +
gyp verb which failed ' at /Users/arnav/node_modules/isexe/mode.js:8:5\n' +
gyp verb which failed ' at 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 /anaconda3/bin/python
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /anaconda3/bin/python -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:303:12)
gyp ERR! stack at ChildProcess.emit (events.js:321:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1026:16)
gyp ERR! stack at Socket. (internal/child_process.js:441:11)
gyp ERR! stack at Socket.emit (events.js:321:20)
gyp ERR! stack at Pipe. (net.js:668:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/Users/arnav/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/arnav/node_modules/node-sass
gyp ERR! node -v v13.8.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN enoent ENOENT: no such file or directory, open '/Users/arnav/package.json'
npm WARN arnav No description
npm WARN arnav No repository field.
npm WARN arnav No README data
npm WARN arnav No license field.

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! /Users/arnav/.npm/_logs/2020-03-05T07_54_11_343Z-debug.log
arnavs-Air:~ arnav$

  • NPM version (npm -v):
  • Node version (node -v):
  • Node Process (node -p process.versions):
  • Node Platform (node -p process.platform):
  • Node architecture (node -p process.arch):
  • node-sass version (node -p "require('node-sass').info"):
  • npm node-sass versions (npm ls node-sass):
@xzyfer
Copy link
Contributor

xzyfer commented Mar 5, 2020

You're trying to install 4.7.2 on node 13. Please the VERY FIRST LINE of the readme.

@xzyfer xzyfer closed this as completed Mar 5, 2020
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
As sass-spec is migrating to HRX, we need to copy this test here so we
can run it directly via `sassc` instead of the sass-spec runner.

Refs sass#2854
Refs sass/sass-spec#1365
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants