bundle exec not working in Windows

风流意气都作罢 提交于 2021-01-28 07:35:58

问题


I am following the Redmine Install Tutorial

on step 5 it says

Step 5 - Session store secret generation This step generates a random key used by Rails to encode cookies storing session data thus preventing their tampering. Generating a new secret token invalidates all existing sessions after restart.

bundle exec rake generate_secret_token

I'm on Windows 10. When I try to do bundle exec in CMD, I get cannot find the path specified. For whatever reason I cannot find any reference to this problem (perhaps I'm not searching for the right terms). I can't imagine I'm the first to experience this but in any case, how can I resolve it? I can check ruby version, gem version, and rails version just fine. I've been able to do steps 1-4 fine so I don't get why I can't run bundle exec. I suppose this is implied but I can't do step 6 either.


回答1:


Do you have rake rubygem installed? Try to run this in CMD:

gem install rake

Then run the command again:

bundle exec rake generate_secret_token

I'm looking at this: source



来源:https://stackoverflow.com/questions/43883489/bundle-exec-not-working-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!