-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
I get this error
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.4.3, 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 (/home/hacko/npm/lib/node_modules/wintersmith/node_modules/npm/node_modules/node-gyp/lib/configure.js:108:14)
gyp ERR! stack at /home/hacko/npm/lib/node_modules/wintersmith/node_modules/npm/node_modules/node-gyp/lib/configure.js:97:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:194:7)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at maybeClose (internal/child_process.js:817:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
gyp ERR! System Linux 4.1.8-1-ck
gyp ERR! command "/usr/bin/node" "/home/hacko/npm/lib/node_modules/wintersmith/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/hacko/Projects/git/abougouffa/node_modules/wintersmith-livereload/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
warn npm: optional dep failed, continuing [email protected]
warn npm: optional dep failed, continuing [email protected]
warn npm: optional dep failed, continuing [email protected]
warn npm: optional dep failed, continuing [email protected]
Because in my distro (Arch Linux) and many others, python3 is the default python interpreter (the "python" executable is a link for "python3").
You can use "python2" instead of "python" in the shebang line, this is a standard since 2011 PEP-394
sorcamarian, tsheaff, anurag3110, hraban, 9034725985 and 10 more
Metadata
Metadata
Assignees
Labels
No labels