The python issue encountered with NPM install

Source: Internet
Author: User

Gyp err! Configure Errorgyp err! Stack Error:python executable "Python" is v2.4.3, which isn't supported by Gyp.gyp err! Stack you can pass the--python switch to point to Python >= v2.5.0 & < 3.0.0.gyp err! Stack at failpythonversion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:125:14) Gyp ERR! Stack At/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:114:9


Fix, install multiple versions of Python

Set a version that matches

You can use the option to NPM like so --python :

NPM Install--python=python2.7

or set it to is used always:

NPM Config set python python2.7

NPM would in turn pass this option to NODE-GYP when needed.

(NOTE:I ' m The one who opened a issue on Github to has this included in the docs, as there were so many questions about it;-))


The python issue encountered with NPM install

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.