2016-01-02 10 views
5

[email protected] install /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/bufferutil >node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "/path/to/executable/python2.7", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11 gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:78:16) gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:82:29) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:93:16 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) gyp ERR! System Linux 3.13.0-74-generic gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/bufferutil gyp ERR! node -v v5.3.0 gyp ERR! node-gyp -v v3.2.1 gyp ERR! not ok npm WARN install:[email protected] [email protected] install: node-gyp rebuild npm WARN install:[email protected] Exit status 1 > [email protected] install /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/utf-8-validate > node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "/path/to/executable/python2.7", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11 gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:78:16) gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:82:29) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:93:16 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) gyp ERR! System Linux 3.13.0-74-generic gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/utf-8-validate gyp ERR! node -v v5.3.0 gyp ERR! node-gyp -v v3.2.1 gyp ERR! not ok npm WARN install:[email protected] [email protected] install: node-gyp rebuild npm WARN install:[email protected] Exit status 1はPythonの実行ファイル「/path/to/executable/python2.7」を見つけることができません、あなたはパッケージマネージャを使ってPythonをインストールした場合、それはすでにpath-にする必要がありますPYTHON用のenv変数

答えて

2

を設定することができますが、ない場合:

輸出PATH = "$ PATHに:このようにそれを追加し

は/ usr/local/bin/pythonの(またはどこあなたがするのpythonをインストール)ノード-GYPは2.xのを必要とのpython3を使用することはできません(適切なバージョンがインストールされていますか?)

Windowsの場合はRunning Python on Windows for Node.js dependenciesを参照してください。 ariableセット。

+0

実際に私はubantuを使用しています14.04 –

+0

右 - エクスポートPATH = "$ PATH:/ usr/local/bin/pythonはLinux用です。Pythonがあなたのパスにないように思えます。 –

14

スコット解放しますソリューションは、私のために働くが、

がやった

npm config set python $(which python)

を実行していませんでした。

+0

パスは少し違っていました。npm configで設定する前に 'which python'でパスを取得するようにしてください。 –

+0

@PetrGazarov私は自分の答えを更新しました!ありがとうございました! –

関連する問題