[GH-ISSUE #52] [installation dependency] - node-gyp only supports python 2 #34

Closed
opened 2026-02-26 02:31:52 +03:00 by kerem · 2 comments
Owner

Originally created by @walkerdb on GitHub (Dec 15, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/52

Installation fails on Windows if python 3 is installed due to node-gyp plugin requirements

The full error message (one of several raised during installation):

gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.4.2, 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 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:108:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:97:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:742:7)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at maybeClose (child_process.js:1015:16)
gyp ERR! stack     at Socket.<anonymous> (child_process.js:1183:11)
gyp ERR! stack     at Socket.emit (events.js:107:17)
gyp ERR! stack     at Pipe.close (net.js:485:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\dev\Desktop\music\koel\node_modules\laravel-elixir\node_modules\browser-sync\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v0.12.3
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok

I'm running Windows 10
npm 2.9.1

Originally created by @walkerdb on GitHub (Dec 15, 2015). Original GitHub issue: https://github.com/koel/koel/issues/52 Installation fails on Windows if python 3 is installed due to node-gyp plugin requirements The full error message (one of several raised during installation): ``` gyp ERR! configure error gyp ERR! stack Error: Python executable "python" is v3.4.2, 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 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:108:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:97:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:742:7) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at maybeClose (child_process.js:1015:16) gyp ERR! stack at Socket.<anonymous> (child_process.js:1183:11) gyp ERR! stack at Socket.emit (events.js:107:17) gyp ERR! stack at Pipe.close (net.js:485:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\dev\Desktop\music\koel\node_modules\laravel-elixir\node_modules\browser-sync\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil gyp ERR! node -v v0.12.3 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok ``` I'm running Windows 10 npm 2.9.1
kerem closed this issue 2026-02-26 02:31:52 +03:00
Author
Owner

@CaporalDead commented on GitHub (Dec 15, 2015):

This problem is not related to this app, node-gyp is used by nodejs and is not compatible with python 3. You will have the same error with every project that use nodejs. You can install a portable version of python 2 and override your path with the path to the version 2 to use nodejs.

<!-- gh-comment-id:164719510 --> @CaporalDead commented on GitHub (Dec 15, 2015): This problem is not related to this app, node-gyp is used by nodejs and is not compatible with python 3. You will have the same error with every project that use nodejs. You can install a portable version of python 2 and override your path with the path to the version 2 to use nodejs.
Author
Owner

@phanan commented on GitHub (Dec 16, 2015):

I'd echo what @CaporalDead said.

<!-- gh-comment-id:164973798 --> @phanan commented on GitHub (Dec 16, 2015): I'd echo what @CaporalDead said.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#34
No description provided.