Erkkuleo
Erkkuleo8mo ago

[resolved] deployctl installation problem: Permission denied

Hey, I'm having trouble with installinf deno deploy. I'm using the following command: deno install -Arf https://deno.land/x/deploy/deployctl.ts and it gives me: error: Permission denied (os error 13) my os is Ubuntu 22.04 I tried searching all over the internet to find a solution but couldn't. Has anyone resolved this problem before? Thanks!
2 Replies
Deno AI Helper
Deno AI Helper8mo ago
Hello, I wasn't able to find the answer to your question in the official Deno documentation. However, based on the error message you've provided, it seems like you might be encountering a file system permission issue on your Ubuntu system. The "Permission denied (os error 13)" error typically indicates that the user running the deno install command does not have the necessary permissions to write to the directory or file that the command is trying to access. Here are a couple of things you might want to check or try: 1. Ensure that you have the necessary permissions to the directory where you are trying to install deployctl. You might need to use sudo to run the command with administrative privileges, but be cautious with using sudo as it can have security implications. 2. Check if the directory where Deno is trying to install the script is owned by your user. You can use ls -l to check the ownership of the directory. 3. If you are installing global Deno scripts, you might need to ensure that your user has write access to the Deno installation directory. Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice. If the issue persists, you might want to seek help from the community or check if there are any specific permissions-related issues with Deno on Ubuntu 22.04 that other users have encountered and resolved. Good luck, and I hope you're able to resolve the issue soon!
Erkkuleo
ErkkuleoOP8mo ago
I got it to work by reinstalling deno using the command given in documentation. I had probably downloaded it incorrectly somehow before.

Did you find this page helpful?