2011-08-08 178 views
5

我試圖在ubuntu 10.04上安裝咖啡腳本。它永遠掛起。這是 NPM的輸出裝咖啡腳本--verbose:無法在ubuntu上安裝coffeescript LTS

npm info it worked if it ends with ok 
npm verb cli [ 'node', 
npm verb cli '/home/deployment/local/node/bin/npm', 
npm verb cli 'install', 
npm verb cli 'coffee-script', 
npm verb cli '--verbose' ] 
npm info using [email protected] 
npm info using [email protected] 
npm verb config file /home/deployment/.npmrc 
npm verb config file /home/deployment/local/node/etc/npmrc 
npm verb into /home/deployment [ 'coffee-script' ] 
npm verb cache add coffee-script 
npm verb cache add [ 'coffee-script', null ] 
npm verb parsed url { pathname: 'coffee-script', 
npm verb parsed url href: 'coffee-script' } 
npm info addNamed [ 'coffee-script', '' ] 
npm verb addNamed [ null, '' ] 
npm verb GET coffee-script 
npm verb raw, before any munging coffee-script 
npm verb url resolving [ 'https://registry.npmjs.org/', 
npm verb url resolving './coffee-script' ] 
npm verb url resolved https://registry.npmjs.org/coffee-script 
npm verb url parsed { protocol: 'https:', 
npm verb url parsed slashes: true, 
npm verb url parsed host: 'registry.npmjs.org', 
npm verb url parsed hostname: 'registry.npmjs.org', 
npm verb url parsed href: 'https://registry.npmjs.org/coffee-script', 
npm verb url parsed pathname: '/coffee-script' } 
npm verb etag "51J8TC2ZNUASOLES8S4M8TNK3" 
npm verb response https://registry.npmjs.org/coffee-script 
npm verb etag coffee-script from cache 
npm verb GET coffee-script/1.1.2 
npm verb raw, before any munging coffee-script/1.1.2 
npm verb url resolving [ 'https://registry.npmjs.org/', 
npm verb url resolving './coffee-script/1.1.2' ] 
npm verb url resolved https://registry.npmjs.org/coffee-script/1.1.2 
npm verb url parsed { protocol: 'https:', 
npm verb url parsed slashes: true, 
npm verb url parsed host: 'registry.npmjs.org', 
npm verb url parsed hostname: 'registry.npmjs.org', 
npm verb url parsed href: 'https://registry.npmjs.org/coffee-script/1.1.2', 
npm verb url parsed pathname: '/coffee-script/1.1.2' } 
npm verb etag "51J8TC2ZNUASOLES8S4M8TNK3" 
npm verb response https://registry.npmjs.org/coffee-script/1.1.2 
npm verb etag coffee-script/1.1.2 from cache 
npm verb bin dist [ null, 
npm verb bin dist { shasum: 'a530a19d050c37054d83ae6c8041fba0fcd61ed3', 
npm verb bin dist  tarball: 'http://registry.npmjs.org/coffee-script/-/coffee-script- 1.1.2.tgz' } ] 
npm verb addRemoteTarball [ 'https://registry.npmjs.org/coffee-script/-/coffee-script-1.1.2.tgz', 
npm verb addRemoteTarball 'a530a19d050c37054d83ae6c8041fba0fcd61ed3' ] 
npm verb mkdir (expected) error ENOENT, No such file or directory '/tmp/npm-1312820932485' 
npm verb mkdir (expected) error ENOENT, No such file or directory '/tmp/npm-1312820932485/1312820932485-0.11148986197076738' 
npm verb mkdir done: /tmp/npm-1312820932485/1312820932485-0.11148986197076738 755 
npm info fetch https://registry.npmjs.org/coffee-script/-/coffee-script-1.1.2.tgz 
npm verb fetch to /tmp/npm-1312820932485/1312820932485-0.11148986197076738/tmp.tgz 

它似乎在獲取永遠掛起。當我找到該URL時,我收到一條消息,指出http證書已過期。

有什麼建議?

+0

我經歷了類似的問題,是能夠得到它使用'sudo'安裝。你嘗試過嗎? –

+0

所有節點的東西都安裝在本地的用戶。當我安裝節點時,我用「./configure --prefix = $ HOME/local/node」運行configure。過去,當用戶不具有sudo訪問權時,我已成功完成此操作。 –

回答

0

我在過去幾天一直有麻煩。我認爲軟件包註冊表可能存在問題。

UPDATE:這肯定似乎是一個npm problem

1

節點奇數版本被認爲是不穩定的。使用0.4分支的最後一個版本,它應該工作(它昨天爲我做了)。

+1

使用'nvm'來管理node.js版本 – TiansHUo

+0

@TiansHUo謝謝,我一回家就會嘗試。 – Serabe

6

現在,你可以做

sudo apt-get install coffeescript 
0

的Ubuntu的老版本有相當過時node.js中這些都是從node.js中的維基(https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint-elementary-os)的說明:

獲取最近的節點的版本或安裝在舊的Ubuntu和 其他基於容易的發行,可能需要一些額外的步驟。例如 安裝:

sudo apt-get update 
sudo apt-get install -y python-software-properties python g++ make 
sudo add-apt-repository ppa:chris-lea/node.js 
sudo apt-get update 
sudo apt-get install nodejs