捆绑包执行程序在Windows中不起作用 [英] bundle exec not working in Windows

查看:63
本文介绍了捆绑包执行程序在Windows中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在遵循 Redmine安装教程

在第5步中说

第5步-会话存储秘密生成此步骤生成Rails用来对存储会话数据的cookie进行编码的随机密钥,从而防止其被篡改.重新启动后,生成新的秘密令牌会使所有现有会话无效.

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

我在Windows 10上.当我尝试在CMD中执行bundle exec时,找不到指定的路径.无论出于何种原因,我都找不到与该问题有关的任何信息(也许我没有搜索正确的术语).我无法想象我是第一个体验到这一点的人,但是无论如何,我该如何解决呢?我可以检查ruby版本,gem版本和rails版本.我已经能够很好地执行步骤1-4,所以我不明白为什么我不能运行bundle exec.我想这是隐含的,但我也不能执行第6步.

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.

推荐答案

您是否安装了rake ruby​​gem?尝试在CMD中运行此代码:

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

gem install rake

然后再次运行命令:

bundle exec rake generate_secret_token

我正在查看:

这篇关于捆绑包执行程序在Windows中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆