Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在 osx 上构建 bootstrap 3。我已经使用安装 npm
brew install npm
然后运行
npm install
在引导目录中。我希望现在能够执行 grunt 来构建引导程序,但是 PATH 上没有 grunt。
我对 npm 不是很熟悉,所以不确定出了什么问题。任何帮助表示赞赏!
谢谢,NFV
您还必须运行npm install -g grunt-cli,它将在您的系统中全局安装 grunt 并使gruntCLI 工具可用。
npm install -g grunt-cli
grunt
完成此操作后,grunt在项目根目录中运行。