2013-07-02 128 views
2

我打算在早上使用早午餐來編譯coffescript,而不是在Ubuntu上
命令:npm install brunch -b 我在安裝它時遇到了以下問題。早午餐在ubuntu上安裝

npm http 304 https://registry.npmjs.org/coffee-script 
npm ERR! error installing [email protected] 
npm ERR! Error: No compatible version found: [email protected]'>=1.6.2- <1.7.0-' 
npm ERR! Valid install targets: 
npm ERR! ["0.7.0","0.7.1","0.7.2","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.2.0","1.3.0","1.3.1","1.3.2","1.3.3","1.4.0","1.5.0","1.6.0","1.6.1"] 
npm ERR!  at installTargetsError (/usr/share/npm/lib/cache.js:488:10) 
npm ERR!  at next_ (/usr/share/npm/lib/cache.js:438:17) 
npm ERR!  at next (/usr/share/npm/lib/cache.js:415:44) 
npm ERR!  at /usr/share/npm/lib/cache.js:408:5 
npm ERR!  at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7) 
npm ERR!  at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7) 
npm ERR! You may report this log at: 
npm ERR!  <http://bugs.debian.org/npm> 
npm ERR! or use 
npm ERR!  reportbug --attach /home/administrator/npm-debug.log npm 
npm ERR! 
npm ERR! System Linux 3.2.0-23-generic-pae 
npm ERR! command "node" "/usr/bin/npm" "install" "brunch" "-g" 
npm ERR! cwd /home/administrator 
npm ERR! node -v v0.6.12 
npm ERR! npm -v 1.1.4 
npm ERR! message No compatible version found: [email protected]'>=1.6.2- <1.7.0-' 
npm ERR! message Valid install targets: 
npm ERR! message ["0.7.0","0.7.1","0.7.2","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.2.0","1.3.0","1.3.1","1.3.2","1.3.3","1.4.0","1.5.0","1.6.0","1.6.1"] 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/administrator/npm-debug.log 
npm not ok 

什麼問題?

+1

您的節點安裝看起來太舊了。嘗試升級它。 – DrColossos

回答

6

按DrColossos嘗試更新節點...

# update node 
sudo add-apt-repository ppa:chris-lea/node.js 
sudo apt-get update 
sudo apt-get install nodejs 

# now brunch 
sudo npm install -g brunch 
0

更新到最新的NPM你也可以嘗試安裝最新版本的早午餐後:

git clone https://github.com/brunch/brunch.git 
cd brunch 
sudo npm install . -g 

現在,你有最新的早午餐獲得最新的骨架和依賴:

brunch new <name> --skeleton https://github.com/paulmillr/brch-with-chaplin.git 
cd <name> 
bower install