我是Angular開發中的新成員,所以我找到了this template,我想使用它。所以我這樣做:如何正確安裝Start Angular模板?
sudo apt-get install -y nodejs
sudo apt-get install -y npm
sudo npm install -g bower
sudo npm install -g grunt-cli
克隆項目庫:
git clone https://github.com/start-angular/sb-admin-angular.git
cd sb-admin-agular
npm install bower
但是當我嘗試執行命令npm start
,它給我的跟隨誤差:
[email protected]:~/sb-admin-angular$ npm start
> [email protected] start /home/vagrant/sb-admin-angular
> grunt serve
/usr/bin/env: node: No such file or directory
npm ERR! weird error 127
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
[email protected]:~/sb-admin-angular$
任何想法如何解決?或者是什麼原因造成的?
仍然會給出相同的錯誤: http://pastebin.com/n3gb1Z6Y – 2015-04-06 14:21:19
@ValterHenrique如果您嘗試以管理員身份或根目錄運行它,該怎麼辦:根據日誌:npm ERR!請嘗試以root/Administrator身份再次運行此命令。 – alex 2015-04-06 14:44:46