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

npm install needs to be done with python 2 #72

Open
honzajavorek opened this Issue Jun 6, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@honzajavorek
Member

honzajavorek commented Jun 6, 2017

Some node dependencies require compilation via node-gyp, but node-gyp doesn't support python3. The site is in python3, that means it's 99% chance a person installing the site locally will have a virtualenv with python3 active and his node-gyp compilation will fail.

The installation tutorial should suggest passing system python (or any kind of python 2) to the npm explicitly:

npm install --python=/usr/bin/python
@benabraham

This comment has been minimized.

Member

benabraham commented Jun 6, 2017

Probably not a problem on Windows though.

@honzajavorek

This comment has been minimized.

Member

honzajavorek commented Jun 6, 2017

Depends if you have multiple Python versions in the system, which could theoretically happen if you're seasoned developer.

@honzajavorek

This comment has been minimized.

Member

honzajavorek commented Jun 6, 2017

actually... 🤔 I have no idea how node-gyp works on Windows and if it works at all 😄 you'd need a compiler...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment