所以我在这里遵循这个教程: http://foundation.zurb.com/learn/video-started-with-foundation.html
我cd
进入我的项目文件夹,安装了ruby,我安装了bower,安装基础
gem install foundation
但是我无法创建新的基础项目。
According to the site,命令只是foundation new PROJECT_NAME
我目前收到的错误是: bash:foundation:找不到命令
这是我的基础安装路径
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/.gitignore
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/Gemfile
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/LICENSE.txt
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/README.md
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/Rakefile
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/bin/foundation
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/foundation-cli.gemspec
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/lib/foundation/cli.rb
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/lib/foundation/cli/generator.rb
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/lib/foundation/cli/version.rb
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/test/Gemfile
/usr/local/Cellar/ruby/2.0.0-p195/bin/foundation
Successfully installed foundation-1.0.1
Parsing documentation for foundation-1.0.1
Parsing sources...
100% [ 3/ 3] lib/foundation/cli/version.rb
1 gem installed
Leons-MacBook-Pro:websites leongaban$
-
/user/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1
答案 0 :(得分:1)
首先尝试找到安装基础的位置:
updatedb && locate foundation
如果基础路径不在PATH变量中,请添加它:
export PATH=$PATH:/path/to/your/foundation
同样在安装过程中使用-V
选项查看基础的安装位置