Search code examples
deno

PermissionDenied: Zugriff verweigert (os error 5) when installing snel via deno


everytime I try to install Snel with this command deno run -A https://deno.land/x/snel/install.ts, I get the error message:

PermissionDenied: Zugriff verweigert (os error 5)
    at Object.opSync (deno:core/01_core.js:149:12)
    at opRun (deno:runtime/js/40_process.js:27:17)
    at Object.run (deno:runtime/js/40_process.js:114:17)
    at install (https://deno.land/x/[email protected]/install.ts:18:24)
    at Main (https://deno.land/x/[email protected]/install.ts:32:9)
    at https://deno.land/x/[email protected]/install.ts:37:3

Error message

Does anybody have an idea how to solve this issue?

Thanks!

Edit: I have Admin rights and used the https://github.com/crewdevio/Snel manual, so this is not the issue.


Solution

  • Solved: The problem was, that there was a space in the Deno.execPath(). The Deno Community could fix the issue in the Snel installing script. The new version can handle spaces and already got merged.