-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deno upgrade failed due to no write permission to "/usr/local/bin/deno" in macos 12.4 #14829
Comments
I also encountered the same message. I don't know if this is caused by macOS side or deno side. My EnvironmentMy macOS version is The version of deno is as follows. $ deno --version
deno 1.21.0 (release, aarch64-apple-darwin)
v8 10.0.139.17
typescript 4.6.2 Error messageI have not run it with $ deno upgrade
error: You do not have write permission to "/opt/homebrew/bin/deno" How it was solvedFortunately I have succeeded in solving this problem. It was an error related to permission, so I granted the permission and the problem was solved. $ chmod 711 /opt/homebrew/bin/deno In my case, this solved the problem. $ deno upgrade @duke-git I don't know if this will solve your problem, but I hope it will be helpful. |
@shinshin86 Thanks a lot. I solved the problem by following your guide. |
In my case, I ran ”$ chmod 711 /usr/local/bin/deno” in a terminal and it worked. Thanks! |
if you dont want to worry about where/how you installed deno, use chmod 711 $(where deno) |
solved. thank you 🥳 |
When sudo to run deno upgrade in macos 12.4, It's still failed, cause no write permission to "/usr/local/bin/deno".
How could I set path "/usr/local/bin/deno" can be writable.
The text was updated successfully, but these errors were encountered: