我在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