Giter Site home page Giter Site logo

Comments (2)

aditakacs avatar aditakacs commented on June 11, 2024

PS C:\Program Files\nodejs> node -v
v12.14.0
PS C:\Program Files\nodejs> npm -v
6.13.4
PS C:\Program Files\nodejs> node-gyp -v
v5.0.7

from aura-sdk.

SpEaGs avatar SpEaGs commented on June 11, 2024

The whole stack trace isn't visible in your post, but this is likely caused by having the wrong or no version of Python. This is an issue with node-gyp, not with aura-sdk. You'll have to do the following to fix it:

  1. Download Python 2 and install it wherever
  2. Add its filepath to your path EV (google if you don't know how),
  3. Rename python.exe in the new install to something like python2.exe (only necessary if you have Python 3 already but I'd recommend doing it anyway)
  4. Then in any terminal do npm config set python python2 to tell npm which python exe to use and your issue should be fixed.

It should be noted that Python 2 is no longer getting updates as of the end of 2019, and node-gyp has been outdated for a while now since it still requires Python 2 to function properly, so it would be best to avoid these when possible.

If you have Python 3 installed already I'd recommend renaming its exe as well so that you can call either one without things getting confusing.

Edit: Grammar

from aura-sdk.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.