Ruby on rails 不幸的是,发生了意外错误,捆绑程序无法继续。!这是什么意思?

Ruby on rails 不幸的是,发生了意外错误,捆绑程序无法继续。!这是什么意思?,ruby-on-rails,ruby,Ruby On Rails,Ruby,我运行了命令C:/RailsInstaller/Ruby2.3.3/bin/bundle update 回溯: C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:68: warning: already initialized constant Win32::WCHAR C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:68: warning: prev

我运行了命令
C:/RailsInstaller/Ruby2.3.3/bin/bundle update

回溯:

C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:68: warning: already initialized constant Win32::WCHAR
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:68: warning: previous definition of WCHAR was here
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:69: warning: already initialized constant Win32::WCHAR_NUL
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:69: warning: previous definition of WCHAR_NUL was here
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:70: warning: already initialized constant Win32::WCHAR_CR
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:70: warning: previous definition of WCHAR_CR was here
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:71: warning: already initialized constant Win32::WCHAR_SIZE
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:71: warning: previous definition of WCHAR_SIZE was here
档案:

源代码'https://rubygems.org'
git_源(:github)do | repo_名称|
repo_name=“#{repo_name}/#{repo_name}”除非repo_name.include?(“/”)
"https://github.com/#{repo_name}.git“
结束
#捆绑边缘Rails:gem'Rails',github'Rails/Rails'
gem'rails',“~>5.1.3”
#使用sqlite3作为活动记录的数据库
gem'sqlite3'
#使用Puma作为应用程序服务器
宝石“彪马”,“大于3.7”
#将SCS用于样式表
gem'sass-rails',“~>5.0”
#使用Uglifier作为JavaScript资产的压缩器
gem'uglifier','>=1.3.0'
#看https://github.com/rails/execjs#readme 获取更多受支持的运行时
#宝石“therubyracer”,平台::ruby
#将CoffeeScript用于.coffee资产和视图
gem“咖啡轨”,“~>4.2”
#Turbolinks使web应用程序的导航速度更快。阅读更多:https://github.com/turbolinks/turbolinks
gem“涡轮链接”,“大于5”
#轻松构建JSON API。阅读更多:https://github.com/rails/jbuilder
gem'jbuilder',“~>2.5”
#使用Redis适配器在生产中运行操作电缆
#gem'redis',“~>3.0”
#使用ActiveModel具有\u安全\u密码
#gem'bcrypt',“~>3.1.7”
#使用Capistrano进行部署
#gem“capistrano rails”,集团::开发
小组:开发,:测试
#在代码中的任意位置调用“byebug”以停止执行并获得调试器控制台
gem'byebug',平台:[:mri,:mingw,:x64_mingw]
#增加了对Capybara系统测试和selenium驱动程序的支持
宝石“水豚”,“大于2.13”
gem“selenium webdriver”
结束
小组:发展怎么办
#在异常页面上或通过使用代码中的任意位置访问IRB控制台。
gem“web控制台”,“>=3.3.0”
结束
#Windows不包括zoneinfo文件,因此捆绑tzinfo数据
gem'tzinfo data',平台:[:mingw,:mswin,:x64_mingw,:jruby]

我从未遇到过这个问题,但似乎这与终端的代码页有关

通过终端运行命令chcp 1252应该可以解决这个问题。请注意,这不会全局更改所有终端的代码页,只会更改当前终端的代码页。有关更多信息,请参阅此

ArgumentError: unknown encoding name - CP720
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:72:in `find'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:72:in `<module:Win32>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:4:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/resolv.rb:7:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/resolv.rb:172:in `<class:Hosts>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/resolv.rb:169:in `<class:Resolv>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/resolv.rb:39:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/remote_fetcher.rb:7:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/spec_fetcher.rb:2:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/dependency_installer.rb:6:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/installer.rb:3:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/cli/update.rb:50:in `run'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/cli.rb:231:in `update'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/cli.rb:22:in `dispatch'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/cli.rb:13:in `start'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/exe/bundle:30:in `block in <top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/exe/bundle:22:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `load'
  C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `<main>'
Bundler   1.15.3
Rubygems  2.5.2
Ruby      2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
GEM_HOME  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0
GEM_PATH  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0;C:/Users/User/.gem/ruby/2.3.0
Git       2.28.0.windows.1
Platform  x86-mingw32
OpenSSL   OpenSSL 1.0.2j  26 Sep 2016