我在rails new app
的基礎上創建了一個新的導軌項目。然後命令提示符顯示幾個文件的創建,然後顯示run bundle install
並在此之後顯示一些東西。'捆綁安裝'不能在導軌上工作
然而,我改變了Gemfile以添加一些新的寶石,並再次運行bundle install
來安裝這些寶石,但我得到invalid argument
錯誤。那麼,我如何運行軟件包安裝?
Rails的版本:3.2.1, 紅寶石版本:1.9.3
這裏的Gemfile中
source 'https://rubygems.org'
gem 'rails', '3.2.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
end
group :development do
gem 'rspec-rails', '2.0.0.beta.18'
end
group :test do
gem 'rspec', '2.0.0.beta.18'
end
gem 'jquery-rails'
更新
因爲是原來我曾打電話MoSync安裝的東西有一段時間,它可能帶有一個捆綁命令。所以,當我輸入bundle install
時,它試圖運行其他東西,但找不到有效的參數。
很明顯,當我輸入只是bundle
在PowerShell中見到了這個:
MAUtil::MAFS Bundle tool
This tool is used to build a binary image of a folder on a desktop computer.
Usage:
bundle <parameters>
Parameters:
-in <input file or folder> the input files or folders to add to the
image (multiple -in directives may be added).
-out <output file> the name of the image to be created (only one).
-toUpper/-toLower change case of all file names to upper or lower
case.
Example:
bundle -in data -out anotherworld.bun -toLower
向我們展示你的Gemfile,最有可能在它有一個錯誤。同時向我們顯示實際的錯誤輸出。你沒有給我們足夠的信息來幫助你,我們也猜不到:) – Agis
@Agis錯誤只是這麼多而已。兩個字,就是。 – Jatin
'rspec-rails' vresion字符串中存在拼寫錯誤:'bete'而不是'beta'。我不確定這是否是問題,但您可以嘗試:)。 – mrzasa