0

I am installing all the packages needed in a node.js project I downloaded and I am getting a ton of errors that I have no idea how to resolve them. It seems to be involved with getting python to run. I have both 2.7 and 3.3 on my computer.

Here are some images of the errors

Error 1 Error 2

Domecraft
  • 1,645
  • 15
  • 26
Dibesjr
  • 496
  • 3
  • 12

3 Answers3

1

The issue is that Python 2.7 is either not on your PATH or else is after Python 3.3. You can solve this problem by either:

  • Passing the path to Python 2.7 using the --python flag (as it states in the error) or
  • By adding the path to Python 2.7 (C:\Python27, most likely) to your PATH (or by moving it before C:\Python33 in the list).
Sean Vieira
  • 155,703
  • 32
  • 311
  • 293
1

You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0

Did you try that?

The problem here is that apparently to build that module, Python 2 is required, but your standard Python executable in the PATH is the Python 3 executable.

Other than that, it might be a good idea to ask the module maintainer to upgrade his build process to support Python 3 too.

poke
  • 369,085
  • 72
  • 557
  • 602
  • Okay I got it to compile I think, but now I get a crazy amount of errors and warnings. Here is a quick video of it: http://screencast.com/t/svgMjkISJX – Dibesjr Oct 06 '13 at 22:14
  • `--python=python2` npm is made by naughty people. – PPPaul Mar 18 '15 at 17:12
0

if python2 is in your path (applies to a lot of linux setups) npm install node-gyp-package --python=python2

PPPaul
  • 361
  • 1
  • 7