[英]zsh: permission denied: bin/rake
I have recently bought a new Macbook and have installed Rails, Ruby, Git, Homebrew, and Postgres successfully. 我最近买了一台新的Macbook并成功安装了Rails,Ruby,Git,Homebrew和Postgres。 I can open my app in atom but when I try to run a migration or drop the database, ZSH gives me a permission denied error. 我可以在atom中打开我的应用程序但是当我尝试运行迁移或删除数据库时,ZSH给了我一个权限被拒绝的错误。 Is there something I'm missing / have forgotten to install? 有什么我遗失/忘记安装?
➜ SYT git:(master) ✗ bin/rake db:migrate zsh: permission denied: bin/rake ➜ SYT git:(master) ✗ bin/rake db:drop zsh: permission denied: bin/rake
Apparently the contents of bin
directory do not have permission to be executed. 显然, bin
目录的内容没有执行权限。 You can fix it with 你可以修复它
chmod +x bin/*
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.