Tag: gem bundler

Gem安装错误的参数数量(给定1,预期为0)

当我运行bundle ,我得到以下内容: The `bundle’ command exists in these Ruby versions: 2.1.8 2.4.2 jruby-9.1.15.0 我的项目使用Ruby-2.5.1,所以我尝试使用gem install bundler更新我的gem install bundler ,但是我收到以下错误: ERROR: While executing gem … (ArgumentError) wrong number of arguments (given 1, expected 0) 使用–backtrace /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:47:in `require’ /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/installer.rb:162:in `initialize’ /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/installer.rb:104:in `new’ /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/installer.rb:104:in `at’ /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/resolver/specification.rb:93:in `install’ /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/request_set.rb:166:in `block in install’ /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/request_set.rb:156:in `each’ /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/request_set.rb:156:in `install’ /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/commands/install_command.rb:251:in `install_gem’ /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/commands/install_command.rb:301:in […]

PHP有没有喜欢ruby gem bundler?

我是熟悉Rails的PHP程序员。 Ruby gem bundler是非常好的安装依赖项的工具,php有类似的东西吗?(也许有些php框架有这样的工具)。 关于gem bundler的扩展: Bundler系统地,可重复地管理应用程序在整个生命周期中的依赖关系。

Bundler :: RubyVersionMismatch:您的Ruby版本是1.9.3,但您的Gemfile指定为2.0.0

我正在使用带有Pow,Ruby,Rails和一堆有用gem的Mac。 每当我尝试打开我的应用程序时,我最近都会遇到此错误。 Bundler :: RubyVersionMismatch:您的Ruby版本是1.9.3,但您的Gemfile指定为2.0.0 我理解错误,但我找不到为什么它没有在这里使用正确的版本。 一些有用的信息: 堆栈跟踪 Bundler::RubyVersionMismatch: Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ~/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:361:in `validate_ruby!’ ~/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler.rb:116:in `setup’ ~/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `’ ~/Dropbox/Documents/project/Sites/project-profile/config.ru:3:in `block in ‘ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/builder.rb:4:in `initialize’ ~/Dropbox/Documents/project/Sites/project-profile/config.ru:1:in `new’ ~/Dropbox/Documents/project/Sites/project-profile/config.ru:1:in `’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:50:in `eval’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:50:in `load_config’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:43:in `initialize’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:13:in `new’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:13:in `run’ ~/Library/Application […]