我工作的Ubuntu系統上,我已經使用命令grunt serve不在ubuntu中運行?
sudo apt-get install nmp
安裝NMP,然後我跑
sudo npm install -g grunt-cli bower
在此之後,我跑的命令
grant serve
和我我得到這個輸出
>> Local Npm module "grunt-legacy-util" not found. Is it installed?
>> Local Npm module "grunt-legacy-log" not found. Is it installed?
Loading "connect.js" tasks...ERROR
>> Error: Cannot find module 'connect'
Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'imagemin-gifsicle'
Loading "jshint.js" tasks...ERROR
>> Error: Cannot find module 'hooker'
Loading "uglify.js" tasks...ERROR
>> Error: Cannot find module 'chalk'
Loading "cdnify.js" tasks...ERROR
>> Error: Cannot find module 'debug'
Loading "grunt-karma.js" tasks...ERROR
>> Error: Cannot find module 'socket.io'
Loading "ng-annotate.js" tasks...ERROR
>> Error: Cannot find module 'ng-annotate'
Running "serve" task
Warning: Task "connect:livereload" not found. Use --force to continue.
Aborted due to warnings.
Execution Time (2014-11-17 04:36:34 UTC)
loading tasks 5ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 56%
serve 3ms ▇▇▇▇▇▇▇▇▇▇▇▇▇ 33%
Total 9ms
我試圖運行
sudo npm install -g grunt-legacy-util
sudo npm install -g grunt-legacy-log
,但我仍然得到同樣的錯誤。
任何人都可以請幫忙嗎?
嗯,它說「**本地** Npm模塊」,所以你應該安裝那些沒有'-g'標誌。 –
你可以提供一些關於你想要做什麼的更多細節嗎?另外我假設你的意思是npm,而不是「nmp」 – 7200rpm
@FabrícioMatté我試過沒有-g ...它仍然給出相同的錯誤 – ishanbakshi