Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed at the node-sass@4.9.4 postinstall script #1

Open
alanrostin opened this issue Aug 20, 2020 · 1 comment
Open

Failed at the node-sass@4.9.4 postinstall script #1

alanrostin opened this issue Aug 20, 2020 · 1 comment

Comments

@alanrostin
Copy link

os: ubuntu 20.04
npm version: 6.14.6
node version: 12.18.3

After cloning repository and executing npm install, I get these errors:

  • gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
  • npm ERR! Failed at the node-sass@4.9.4 postinstall script.
@r-parikh
Copy link

r-parikh commented Sep 9, 2020

Ubuntu 20.04 doesn't come pre-installed with Python2 anymore. You can install Python2 and test. With Python3, you'll have to install node-gyp separately and the error occurs at node-sass, for which you'll need to install node-sass v5 which is not compatible with the dependency version specified in package.json.

TL;DR version: install python2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants