2011-06-17 18 views
7

एक गड़बड़ बिना निम्न कमांडNPM स्थापित मुद्दों उबंटू 11.04

sudo apt-get install git-core curl build-essential openssl libssl-dev 
git clone https://github.com/joyent/node.git && cd node 
./configure 
make 
make install 
node -v 
v0.5.0-pre 

काम करता है के साथ एक नई नोड स्थापित करने। जब मैं NPM स्थापित करने का प्रयास मैं मिलता है:

>/tmp/node$ curl http://npmjs.org/install.sh | sudo sh 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
100 3874 100 3874 0  0 3033  0 0:00:01 0:00:01 --:--:-- 22923 
fetching: 

gzip: stdin: unexpected end of file 
tar: This does not look like a tar archive 
tar: Exiting with failure status due to previous errors 
It failed 
> 

मैं एक VirtualBox नेट रास्ते में कोई विशेष प्रॉक्सी/फ़ायरवॉल के साथ नेटवर्किंग का उपयोग कर रहा हूँ।

कोशिश कर curl -s -L http://registry.npmjs.org/npm/latest मैं मिल {"error":"ucs","reason":"{bad_utf8_character_code}"}
जो NPM तरफ एक समस्या का संकेत हो सकता है ??

राल्फ

+0

लेकिन ध्यान में रखना है कि इस नोड का नवीनतम संस्करण स्थापित है, और यह compatibilities टूट सकता है। उदाहरण के लिए जब कमांड को चलाते समय इसे थियोस टिप्पणी लिखने के दौरान नोड 0.4.12 की आवश्यकता हो सकती है, स्वचालित रूप से डाउनलोड किया गया संस्करण 0.7.9 है। http://stackoverflow.com/questions/7717623/getting-an-error-when-running-the-less-css-compiler-in-node-js महान –

उत्तर

12

इस प्रयास करें:

git clone http://github.com/isaacs/npm.git 
cd npm 
sudo make install 
+0

- यह मेरे NPM aworking देता है: यह पोस्ट देखें। लेकिन मैं अभी भी खो गया हूं, क्योंकि यूआरएल http://registry.npmjs.org/npm के तहत कोई कामकाजी भंडार नहीं है –

0

ऐसा लगता है इस समय NPM रजिस्ट्री के साथ कोई समस्या नहीं है - मैं एक ही त्रुटि हो रही थी, Git का उपयोग कर स्थापित करें, और तब पता चला कि रजिस्ट्री भी नीचे है

रजिस्ट्री के बारे में अधिक नीचे होने के लिए https://github.com/isaacs/npm/issues देखें - NPM के पूरे के साथ कुछ समस्या हो सकती है।

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