Wazbat
Wazbat
Explore posts from servers
DDeno
Created by Wazbat on 10/27/2024 in #help
permission denied error when running deno install inside dockerfile
I thought the error was caused by the ENV DENO_DIR=./.deno_cache that I added due to the following: https://github.com/denoland/deno_docker/blob/main/README.md#running-on-google-cloud-rungcr However even after removing it I still get that same os error, now due to failing to write the lockfile:
0.910 Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
0.910 ┠─ npm:[email protected]
0.910 ┃
0.910 ┠─ This may cause the packages to not work correctly.
0.910 ┠─ Lifecycle scripts are only supported when using a `node_modules` directory.
0.910 ┠─ Enable it in your deno config file:
0.910 ┖─ "nodeModulesDir": "auto"
1.065 error: Failed writing lockfile.
1.065
1.065 Caused by:
1.065 Permission denied (os error 13) (for '/app/deno.lock')
0.910 Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
0.910 ┠─ npm:[email protected]
0.910 ┃
0.910 ┠─ This may cause the packages to not work correctly.
0.910 ┠─ Lifecycle scripts are only supported when using a `node_modules` directory.
0.910 ┠─ Enable it in your deno config file:
0.910 ┖─ "nodeModulesDir": "auto"
1.065 error: Failed writing lockfile.
1.065
1.065 Caused by:
1.065 Permission denied (os error 13) (for '/app/deno.lock')
I'm at a loss
3 replies