Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I'm new to MAC (OSX version is High Sierra 10.13.3). I installed python 3.6.5 with the installer from python.org and I tried doing it with brew too by running
brew install python
. Now, I'm trying to run
sudo npm install
in a Angular project and I get the following errors:
gyp verb check python checking for Python executable "/path/to/python3/python" in the PATH
gyp verb `which` failed Error: not found: /path/to/python3/python
gyp ERR! stack Error: Can't find Python executable "/path/to/python3/python", you can set the PYTHON env variable.
I have tried all the answers in here :
python location on mac osx
Can't find Python executable "python"
Inside of my projects folder I do the following:
when I type 'which python' I get:
/usr/local/opt/python/libexec/bin/python
When I type 'which python3.6.5' I get:
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
–
–
–
–
–
For me it was all happening because of nodejs version.
Node version 16+ does not support "node-sass": "^4.14.1", so I have to install nvm and downgrade the nodesjs in macbook as follows
Before installing nvm, run this in terminal: touch ~/.bash_profile
After, run this in terminal: curl -o-
https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh |
Important... - DO NOT forget to Restart your terminal OR use command
source ~/.nvm/nvm.sh (this will refresh the available commands in
your system path).
In the terminal, use command nvm --version and you should see the
version
bash nvm install 14.17.0
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.