Установка позднего завтрака на Ubuntu

Я собирался использовать бранч для компиляции coffescript и меньше на Ubuntu
команда: npm install brunch -b И у меня есть некоторые проблемы, такие как следующие при установке.

npm http 304 https://registry.npmjs.org/coffee-script
npm ERR! error installing brunch@1.6.7
npm ERR! Error: No compatible version found: coffee-script@'>=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: coffee-script@'>=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

В чем проблема?

2 ответа

Решение

Согласно 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

После обновления до последней версии 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

Ta

Другие вопросы по тегам