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