I have cloned a repo that has Yeoman installed.
我克隆了一个安装了Yeoman的仓库。
I installed node, as well as Yeoman npm i -g yo
. When I run grunt
I get an error stating:
我安装了节点,以及Yeoman npm i -g哟。当我运行grunt时,我得到一个错误说明:
Error: Cannot find module 'load-grunt-tasks' Warning: Task "default" not found. Use --force to continue.
错误:找不到模块'load-grunt-tasks'警告:找不到任务“default”。使用--force继续。
What else do I need to do to be able to run this repo successfully?
为了能够成功运行此repo,我还需要做些什么?
2 个解决方案
#1
17
The first time, you have to run npm install.
第一次,你必须运行npm install。
This will install all the needed dependencies as described in the package.json
这将安装所有必需的依赖项,如package.json中所述
Subsequently, if anyone add a new dependency into this file, you will need to run npm install
or npm update
again.
随后,如果有人在此文件中添加新的依赖项,则需要再次运行npm install或npm update。
#2
6
Actually besides npm, you should also download bower dependencies.
So it's 2-step:
实际上除了npm之外,你还应该下载bower依赖项。所以这是两步:
npm install
- npm安装
bower install
- 凉亭安装
If you don't invoke bower application may launch, but later you may encounter problems such as the lack of libraries.
如果你没有调用bower应用程序可能会启动,但是稍后你可能会遇到诸如缺少库等问题。
#1
17
The first time, you have to run npm install.
第一次,你必须运行npm install。
This will install all the needed dependencies as described in the package.json
这将安装所有必需的依赖项,如package.json中所述
Subsequently, if anyone add a new dependency into this file, you will need to run npm install
or npm update
again.
随后,如果有人在此文件中添加新的依赖项,则需要再次运行npm install或npm update。
#2
6
Actually besides npm, you should also download bower dependencies.
So it's 2-step:
实际上除了npm之外,你还应该下载bower依赖项。所以这是两步:
npm install
- npm安装
bower install
- 凉亭安装
If you don't invoke bower application may launch, but later you may encounter problems such as the lack of libraries.
如果你没有调用bower应用程序可能会启动,但是稍后你可能会遇到诸如缺少库等问题。