RoR [Error] CLIENT: 1.6.2, SERVER: 1.6.1

12 1月, 2016

RoR [Error] CLIENT: 1.6.2, SERVER: 1.6.1




由於之前為了測試一些東西,把一些應用程序刪除後。
結果導致產生一個hello的controller的時候 (指令下 rails g controller hello)
出現了以下的錯誤訊息:

There is a version mismatch between the spring client and the server.
You should restart the server and make sure to use the same version.

CLIENT: 1.6.2, SERVER: 1.6.1




咕狗後,解決的方法是:

到專案底下,找到Gemfile這個檔案,搜尋  gem 'spring',

將 gem 'spring'
改成   gem 'spring','1.6.1'


原因可能是版本號對不上,在後面增加對應Sever的版本號。

儲存後,就可以正常運行。
如果無法的話,就下  bundle update 來更新Gemfile就解決了。



張貼留言