Redberry
Redberry14mo ago

Permission denied (os error 13)

Please help me, I'm desparate. It doesn't print anything else.
9 Replies
Testersen™
Testersen™14mo ago
It says it in the error message, not deno problem. Something is wrong with your file/directory permissions of something your app uses If you're using the file system in your app make sure to use try/catch to handle that
Redberry
Redberry14mo ago
is there a way to display more errors?
Testersen™
Testersen™14mo ago
I'd recommend checking out the file permissions for $DENO_HOME and for deno info paths And use try/catch in all io operations to handle errors gracefully Also try running app.js without sudo
Redberry
Redberry14mo ago
$DENO_HOME is my ~ home directory
Testersen™
Testersen™14mo ago
wat
Redberry
Redberry14mo ago
I cd'd into $DENO_HOME and it cd'd me into ~
Testersen™
Testersen™14mo ago
echo $DENO_HOME
Redberry
Redberry14mo ago
oh it's empty 🤔 it's blank
Testersen™
Testersen™14mo ago
It should be $HOME/.deno depending on how it was installed also avoid the use of sudo when running deno — not really recommended