Re: [nodejs] Issues installing the jquery node-module with node 0.10.5

202 views
Skip to first unread message

Nathan Rajlich

unread,
May 14, 2013, 12:15:51 PM5/14/13
to nodejs
Sorry for the confusion in the Readme, I've just updated it to specify the required python version for the "unix" requirements as well. Basically it's *not* a Windows-only thing, and on Arch Linux as well you'll need to have python 2.7 installed.


On Mon, May 13, 2013 at 8:08 PM, Alex Irlik <irl...@gmail.com> wrote:
Hey there,

I'm trying to install the jquery node module locally with node version 0.10.5 and npm version 1.2.21. I'm running node on Arch Linux.

When I try to install the jquery node module, I get a variety of errors. What puzzles me most is the first error written here:

gyp ERR! stack Error: Python executable "python" is v3.3.1, which is not 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/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:118:14)
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:107:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:630:7)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at maybeClose (child_process.js:730:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:5)

This python error for the installation node-gyp is only an error for the Windows platform as you can see on the github https://github.com/TooTallNate/node-gyp

I installed node-gyp separately in Arch Linux, and it was fine with my 3.x.x version of python.

Why do I get this error?

Thanks for any help



--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alex Irlik

unread,
May 14, 2013, 4:32:54 PM5/14/13
to nod...@googlegroups.com
Hmm it's odd I can install node-gyp locally just fine with npm install node-gyp without the python issue. It's just when node-gyp is is a dependency I get the python issue.

Well regardless, do you recommend I change my python path to 2.7 or is it possible to use the --python switch as it says in the error? I cannot seem to find any information about this --python switch anywhere.

Alex Irlik

unread,
May 14, 2013, 4:44:23 PM5/14/13
to nod...@googlegroups.com
Nevermind the --python switch is just --python=python2. Got it.

Thanks for clearing the confusion.
Reply all
Reply to author
Forward
0 new messages