Redberry
Redberry16mo ago

Permission denied (os error 13)

Please help me, I'm desparate. It doesn't print anything else.
9 Replies
Testersen™
Testersen™16mo 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
Redberry16mo ago
is there a way to display more errors?
Testersen™
Testersen™16mo 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
Redberry16mo ago
$DENO_HOME is my ~ home directory
Testersen™
Testersen™16mo ago
wat
Redberry
Redberry16mo ago
I cd'd into $DENO_HOME and it cd'd me into ~
Testersen™
Testersen™16mo ago
echo $DENO_HOME
Redberry
Redberry16mo ago
oh it's empty 🤔 it's blank
Testersen™
Testersen™16mo ago
It should be $HOME/.deno depending on how it was installed also avoid the use of sudo when running deno — not really recommended