【发布时间】:2026-02-24 07:10:02
【问题描述】:
我想使用引导程序创建 Angular js 应用程序,为此我在我的 mac 中安装了 node.js pkg 文件。
之后我安装了 yeoman ($sudo npm install --global yo)。文档说,如果我们安装 yo,那么我们会自动安装 grunt 和 bower。在我的情况下,没有安装 grunt 和 bower。
所以我决定在外部安装它。我使用了以下命令:
$sudo npm install -g bower => 它运行良好,并为我提供所有文件和包。
$ sudo npm install -g grunt => 效果很好,但没有给我所有的文件和包
grunt 安装在 usr/local/lib/node_modules/grunt 的路径上
grunt 文件夹包含文件
constributing.md
licenses-mit
readme
aaveyor.yml
internal-tasks
lib
node_modules
package.json
我缺少哪些文件?
如果我运行命令$ grunt --version 然后我得到以下错误
-bash: /grunt: No such file or directory
如何解决?
【问题讨论】:
标签: node.js angularjs twitter-bootstrap gruntjs yeoman