Ruby on Railsで新規アプリケーションを作成 “rails new <app>” を実行した時に以下のエラーになった場合の対処です。
Checksum of /versions does not match the checksum provided by server! Something is wrong.
環境は以下の通り。
Windows 10 (64bit)
Ruby:2.2.4 (64bit)
DevKit:4.7.2 (64bit)
node.js:4.4.2 (64bit)
コマンドプロンプトから以下を実行し、一旦bundlerをアンインストールします。
C:\Ruby22>gem uninstall bundler
You have requested to uninstall the gem:
bundler-1.12.0
mail-2.6.4 depends on bundler (>= 1.0.3, development)
mini_portile2-2.0.0 depends on bundler (~> 1.7, development)
rails-4.2.6 depends on bundler (< 2.0, >= 1.3.0)
rails-deprecated_sanitizer-1.0.3 depends on bundler (~> 1.6, development)
rails-dom-testing-1.0.7 depends on bundler (~> 1.3, development)
rails-html-sanitizer-1.0.3 depends on bundler (~> 1.3, development)
test-unit-3.0.8 depends on bundler (>= 0, development)
thor-0.19.1 depends on bundler (~> 1.0, development)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN] y
Remove executables:
bundle, bundler
in addition to the gem? [Yn] y
Removing bundle
Removing bundler
Successfully uninstalled bundler-1.12.0
再度インストールします。
C:\Ruby22>gem install bundler Fetching: bundler-1.12.1.gem (100%) Successfully installed bundler-1.12.1 Parsing documentation for bundler-1.12.1 Installing ri documentation for bundler-1.12.1 Done installing documentation for bundler after 5 seconds 1 gem installed
これで “rails new <app>” でのChecksumエラーは解消出来ました。