2012-03-30 7 views
5

मैं अब घंटों की खोज कर रहा हूं और मुझे अभी भी इस समस्या का कोई जवाब नहीं है। मेरे पास मैक ओएस एक्स संस्करण 10.6.8 है मैंने nodejs.org से nodejs स्थापित किया है। संस्करण v0.6.14 है। मैंने टर्मिनल में एनपीएम की जांच करने के लिए यह किया: npm --version। NPM संस्करण है 1.1.12 उसके बाद मैंने कोशिश की NPM socket.io स्थापित करने और मैं यह त्रुटि आई ...मैक npm/nodejs के साथ socket.io स्थापित नहीं कर सकता है?

pm http GET https://registry.npmjs.org/socket.io 
npm http 304 https://registry.npmjs.org/socket.io 
npm http GET https://registry.npmjs.org/socket.io-client/0.9.3 
npm http GET https://registry.npmjs.org/policyfile/0.0.4 
npm http GET https://registry.npmjs.org/redis/0.6.7 
npm http 304 https://registry.npmjs.org/redis/0.6.7 
npm http 304 https://registry.npmjs.org/policyfile/0.0.4 
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.3 
npm http GET https://registry.npmjs.org/uglify-js/1.2.5 
npm http GET https://registry.npmjs.org/ws 
npm http GET https://registry.npmjs.org/xmlhttprequest/1.2.2 
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1 
npm http 304 https://registry.npmjs.org/ws 
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1 
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.2.2 
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5 
npm http GET https://registry.npmjs.org/zeparser/0.0.5 

> [email protected] preinstall /Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws 
> make 

execvp(): No such file or directory 

npm ERR! Error: ENOENT, open '/Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js' 
npm ERR! You may report this log at: 
npm ERR!  <http://github.com/isaacs/npm/issues> 
npm ERR! or email it to: 
npm ERR!  <[email protected]> 
npm ERR! 
npm ERR! System Darwin 10.8.0 
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io" 
npm ERR! cwd /Users/NAME 
npm ERR! node -v v0.6.14 
npm ERR! npm -v 1.1.12 
npm ERR! path /Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js 
npm ERR! code ENOENT 
npm ERR! message ENOENT, open '/Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js' 
npm ERR! errno {} 

npm ERR! [email protected] preinstall: `make` 
npm ERR! `sh "-c" "make"` failed with 127 
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script. 
npm ERR! This is most likely a problem with the ws package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  make 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls ws 
npm ERR! There is likely additional logging output above. 
npm ERR! 
npm ERR! System Darwin 10.8.0 
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io" 
npm ERR! cwd /Users/NAME 
npm ERR! node -v v0.6.14 
npm ERR! npm -v 1.1.12 
npm ERR! code ELIFECYCLE 
npm ERR! message [email protected] preinstall: `make` 
npm ERR! message `sh "-c" "make"` failed with 127 
npm ERR! errno {} 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /Users/NAME/npm-debug.log 
npm not ok 

PLS मदद!

+0

मैक ओएसएक्स 10.6.8 पर समान त्रुटि .. –

उत्तर

0

सॉकेट.ओओ स्थापित करने पर एक मेक चलाता है और चलाने के लिए नोड-वेफ की आवश्यकता होती है। क्या आपने पोर्ट्स जैसे पैकेज मैनेजर के माध्यम से नोड स्थापित किया था, या आपने नोड वेबसाइट पर डीएमजी इंस्टॉल का उपयोग किया था?

यह धागा आपको आ रही समस्या को बोलता है:

https://github.com/LearnBoost/socket.io/issues/773

+0

मैंने nodejs.org से नोड-v0.6.14.pkg स्थापित किया। तो मुझे लगता है कि मैंने इसे पैकेज प्रबंधक के साथ स्थापित किया है? लेकिन मैं त्रुटि को कैसे ठीक करूं? नोड-वाफ पाने के लिए मुझे नोडजेस-देव चाहिए? – Chanckjh

0

अगर आप socket.io के पिछले संस्करण make स्क्रिप्ट चलाने के लिए कोई ज़रूरत नहीं है स्थापित की तरह लगता है। मैं निम्नलिखित की कोशिश की और यह मेरी मैक OSX 10.6.8 पर सफलतापूर्वक स्थापित पाने में कामयाब रहे:

npm install [email protected] 

this google groups post पर आगे की चर्चा नहीं है।

1

फोर्स

npm install socket.io -f 

का उपयोग कर स्थापना परीक्षण की तरह लग रहा नोड waf जरूरत है, लेकिन नहीं पुस्तकालय सीधे। मुझे उम्मीद है कि वे अंततः इन मुद्दों को ठीक करेंगे।

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