-
Notifications
You must be signed in to change notification settings - Fork 246
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 fails on systems with python versions > 3.0 #221
Comments
My python version is 2.7.10 but node-gyp is failing to compile the sqlite3 package when I do a fresh "npm i" in the master branch. This only happens with sqlite3 v3.0.5, when I do a "npm i sqlite3" on a clean project, it installs the sqlite3 v3.1.4 and it works perfectly. |
anyone who know which python version to use please help |
You need the latest Python 2.7.x or newer (less than 3.x), and you should have the Visual C++ 2015 Build Tools (custom install, check everything) installed in order to build binary modules. Then you should set your msvs_version for npm/node
|
anyone who know which python version to use please help. does not work with python2.7.9 |
All I've ever had to do is install python 2.7.x, and the VC++ build tools (or full VS) and set the msvs_version config to match. Can you post the full error message you are getting? |
The
sqlite3
package expects the default version to be python 2 instead callingpython2
directly. I had to manually change the default version in order to install that package. It's also possible to pass the desired version with--python
but I didn't know how to do that as I am not familiar with npm.The text was updated successfully, but these errors were encountered: