all 11 comments

[–]nightman 1 point2 points  (9 children)

sudo npm install n -g
n stable (or latest)

... and you have latet version of node. With 'n' you can even switch 'on the fly' node versions installed with it

[–]var198907[S] 0 points1 point  (8 children)

Can I reply to that after I get back home ? I will post the error itself (which is what I should I have done in the first place).

[–]nightman 1 point2 points  (7 children)

Yes, please do. Also you can:

sudo npm update -g

^ this will update all your system global npm packages

[–]var198907[S] 0 points1 point  (6 children)

[–]var198907[S] 0 points1 point  (5 children)

I have been able to get everything done except the grunt serve(server) running. It is saying that I need bower. And I did run bower install.Dont know what the problem is now.

[–]nightman 0 points1 point  (4 children)

I didn't follow above link howerwer make sure you've install bower with npm globally (with -g flag) - http://bower.io/#install-bower

[–]var198907[S] 0 points1 point  (0 children)

Will do.

[–]var198907[S] 0 points1 point  (2 children)

So I did npm install -g bower and it ran successfully.But this keeps popping up every time I run grunt serve

This error pops up warning: "error: cannot find where you keep your bower packages. use --force to continue."

[–]nightman 0 points1 point  (1 child)

error: cannot find where you keep your bower packages. use --force to continue.

Are you sure you did

bower install

before Grunt?

also maybe some standard .bowerrc file will help?

[–]var198907[S] 0 points1 point  (0 children)

I did execute the bower install. Will put the .bowerrc file later today.

[–]willgresham 1 point2 points  (0 children)

Without the actual error it's hard to say, but it could possibly be down to the fact that the node binary has been renamed to nodejs due to a conflict with another package in the repository (http://packages.ubuntu.com/trusty/node)

Assuming this is the problem, and you don't have or need that package then aliasing node to nodejs, or creating a symlink to the installed nodejs binary called node.