rails server bin/rails:6: warning: already initialized constant APP_PATH error

前端 未结 20 863
别那么骄傲
别那么骄傲 2020-11-30 22:42

I\'ve tried a number of things like uninstalling/reinstalling rails and gems but to no avail.

When I go into my new project and run rails s or bundle exec rails serv

20条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 23:11

    I got this error by trying to update rails 4 and imagemagick and rmagick. So I just ran

    gem uninstall rmagick

    Select the All Versions option. Then try again

    EDIT: This happaned again with me just now because I tried to use a gem without installing the required base gem. In my case the solution was to install 'omniauth-google' before trying to use 'omniauth-google-oauth2', but because I didn't install I got the same error again

提交回复
热议问题