Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

setting python2 in the path for npm install

If Python is installed using a package manager, it should already be on your path.
But if installed using 'msi/exe', then add "C:Python27" to Environment-User-variable PATH (or the location where it is installed)
Node-gyp requires Python 2.x and cannot use Python 3.x

If path is required only at the specific directory, then try below:
npm config set python C:Python27python.exe
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #setting #path #npm #install
ADD COMMENT
Topic
Name
3+2 =