Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm cloning a repo with Yeoman, what configuration do I need on my computer?

I have cloned a repo that has Yeoman installed.

I installed node, as well as Yeoman npm i -g yo. When I run grunt I get an error stating:

Error: Cannot find module 'load-grunt-tasks' Warning: Task "default" not found. Use --force to continue.

What else do I need to do to be able to run this repo successfully?

like image 968
rvazquez Avatar asked Feb 05 '14 13:02

rvazquez


2 Answers

The first time, you have to run npm install.

This will install all the needed dependencies as described in the package.json

Subsequently, if anyone add a new dependency into this file, you will need to run npm install or npm update again.

like image 54
Aurélien Thieriot Avatar answered Nov 14 '22 03:11

Aurélien Thieriot


Actually besides npm, you should also download bower dependencies.
So it's 2-step:

  • npm install
  • bower install

If you don't invoke bower application may launch, but later you may encounter problems such as the lack of libraries.

like image 29
vucalur Avatar answered Nov 14 '22 03:11

vucalur