2016-01-02 6 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पायथन निष्पादन "/path/to/executable/python2.7" नहीं मिला है, तो आप एक पैकेज प्रबंधक का उपयोग कर पायथन स्थापित किया है तुम अजगर env चर

उत्तर

2

सेट कर सकते हैं, यह पहले से ही अपने पथ पर होना चाहिए लेकिन अगर नहीं: इसे इस तरह जोड़ें:

निर्यात पथ = "$ पथ:/usr/स्थानीय/bin/अजगर (या जहाँ भी आप अजगर करने के लिए स्थापित)

नोड-ढकोसला 2.x की आवश्यकता है और python3 उपयोग नहीं कर सकते (क्या आपके पास सही संस्करण स्थापित है?)

विंडोज के लिए Running Python on Windows for Node.js dependencies देखें यह सुनिश्चित करने के लिए कि आपका पर्यावरण v है आश्वस्त सेट

+0

असल में मैं उबंटू 14.04 –

+0

का उपयोग कर रहा हूं - निर्यात PATH = "$ पाथ:/usr/local/bin/python लिनक्स के लिए है। ऐसा लगता है जैसे पाइथन आपके पथ पर नहीं है - जहां भी आपने इसे स्थापित करने के लिए इंस्टॉल किया है पाथ में जोड़ा जायेगा। –

14

स्कॉट को मुक्त कर देते 'समाधान मेरे लिए काम नहीं किया था, लेकिन चल

npm config set python $(which python)

किया था।

+0

मेरे लिए पथ थोड़ा अलग था। एनपीएम कॉन्फ़िगरेशन के साथ सेट करने से पहले पथ प्राप्त करने के लिए 'कौन सा पायथन' जांचना सुनिश्चित करें। –

+0

@PetrGazarov मैंने अपना जवाब अपडेट किया है, धन्यवाद! –

संबंधित मुद्दे