ishanbakshi
ishanbakshi

Reputation: 1965

grunt serve is not running in ubuntu?

I am working on an Ubuntu system and I have installed nmp using the command

sudo apt-get install nmp

and then I ran

sudo npm install -g grunt-cli bower

after this I ran the command

grant serve

and I am getting this output

>> 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

I tried running

 sudo npm install -g grunt-legacy-util
 sudo npm install -g grunt-legacy-log

but I am still getting the same error.

Can anyone please help?

Upvotes: 3

Views: 4220

Answers (2)

ishanbakshi
ishanbakshi

Reputation: 1965

I figured out a way out of it from someones help.

I ran this commmand for clearing :

sudo rm -Rvf node_modules/

and I re-installed npm and nodejs.

Upvotes: 9

Alan Souza
Alan Souza

Reputation: 7795

Did you run "npm install" locally for that to install the dependencies inside your project?

There should be a local package.json in your project, if you run "npm install" this will add them as local dependencies of your project.

Upvotes: 1

Related Questions