CMS*_*CSS 25 install gruntjs osx-mavericks
我正在尝试使用grunt和sass并一直关注这些指南:
我有:
Intsalled node.js
安装了grunt的命令行版本: sudo npm install -g grunt -cli
添加了从grunt安装程序到我的bash配置文件的路径: export PATH=/usr/local/lib/node_modules/grunt/bin:$PATH
使配置文件成为可执行文件 source ~/.bash_profile
我的项目根目录中的设置package.json和Gruntfile.js文件
在项目中安装了咕噜声:cd /path/to/project/root/和sudo npm install
但是当我试图跑步时,grunt我看到:command not found
如果我跑的话也一样: grunt --version
根据上面发布的博客,我不确定bash路径是否需要/ bin,但是我已经尝试了两种方式:
/usr/local/lib/node_modules/grunt/和/usr/local/lib/node_modules/grunt/bin/
我也多次运行grunt安装程序,但没有看到任何错误,所以我确实安装了 - 有人能看到我做错了吗?我正在运行OSX mavericks,这就是问题所在.
任何指向正确方向的人都会非常感激.
干杯
tho*_*aux 55
你的命令中有一个拼写错误.包名称grunt-cli没有空格.
将命令更新为:
sudo npm install -g grunt-cli
Run Code Online (Sandbox Code Playgroud)
一切都应该按预期工作.
| 归档时间: |
|
| 查看次数: |
55335 次 |
| 最近记录: |