1
所以我在這裏按照本教程新的基金項目: http://foundation.zurb.com/learn/video-started-with-foundation.html無法創建
我cd
到我的項目文件夾,安裝紅寶石,我安裝涼亭,安裝基礎
gem install foundation
但是我無法創建新的基礎項目。
According to the site,命令只是foundation new PROJECT_NAME
我目前得到的錯誤:擊:基礎:找不到命令
這裏是我的基礎安裝路徑
/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
哦,非常感謝,在安裝過程中不知道'-V'。我粘貼上面的路徑。接下來我應該做些什麼來創建基礎項目? 'export PATH = $ PATH:/user/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1 ' –
invoke'/usr/local/Cellar/ruby/2.0.0-p195/bin/foundation'或將它添加到你的路徑:'export PATH = $ PATH:/ usr/local/Cellar/ruby/2.0.0-p195/bin'並運行'foundation new YOUR_PROJECT' –
* SWEET thanks!*:DI would有沒有想法創建和導出PATH變量..剛剛得到我的基金會項目創建:) –