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

Node-sass still depends on python 2, switch to python 3 instead. #3013

Closed
Martmists-GH opened this issue Oct 28, 2020 · 5 comments
Closed

Node-sass still depends on python 2, switch to python 3 instead. #3013

Martmists-GH opened this issue Oct 28, 2020 · 5 comments

Comments

@Martmists-GH
Copy link

No description provided.

@Martmists-GH
Copy link
Author

Martmists-GH commented Oct 28, 2020

Why was this closed? It's preventing me from installing node-sass :/

Not to mention, Python 2 has been EOL for almost a year now...

@devedse
Copy link

devedse commented Oct 30, 2020

Running into the same issue

@chron0
Copy link

chron0 commented Jan 2, 2021

gyp info using [email protected]
gyp info using [email protected] | linux | 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.8" in the PATH
gyp verb `which` succeeded /usr/bin/python3.8 /usr/bin/python3.8
gyp ERR! configure error 
gyp ERR! stack Error: Command failed: /usr/bin/python3.8 -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:314:20)
gyp ERR! stack     at maybeClose (internal/child_process.js:1022:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
gyp ERR! System Linux 4.9.185+
gyp ERR! command "/home/node-red/.nvm/versions/node/v12.20.0/bin/node" "/home/node-red/node-red/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/node-red/node-red/node_modules/node-sass
gyp ERR! node -v v12.20.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 

NVM, 5.0.0 compiled clean on arm64, node-red just had 4.14.1 in its deps...

@mayureshhalarnkar
Copy link

I am still facing issue , please help

@xzyfer
Copy link
Contributor

xzyfer commented Jun 1, 2021

Python 3 is used in newer versions of node-sass. Make sure you update to more recent version

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

6 participants