New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: cannot create directory ‘/opt/asdf-vm/tmp’: Permission denied #277
Comments
@wandyirawan I think this issue is specific to the nodejs plugin so I have transferred it to the asdf-nodejs repo issue tracker. @augustobmoura this bug doesn't look familiar to me, so I was wondering if you thought this might have anything to do with the recent PRs. |
I'm having the same problem. Also using Manjaro Linux and asdf v0.8.1 My
When running The following message is displayed: |
I am writing to confirm that I am experiencing the same error on Arch Linux. Here are details about my operating system:
Here is the version of
I typed the following command that I found from the README file:
If I type the command
Thanks for your work on this plugin for asdf! If you have any feedback on how to resolve this issue, it would be greatly appreciated! |
Hmm, I think I know what is going on. It was actually a "bugfix" that made this current bug surface. If you look on commit 800e244, on file + export ASDF_NODEJS_CACHE_DIR="${ASDF_DATA_DIR:-${ASDF_DIR:-$HOME/.asdf}}/tmp/$ASDF_NODEJS_PLUGIN_NAME/cache"
# ...
- versions_cache_dir="${ASDF_DATA_DIR:-${ASDF_HOME:-$HOME/.asdf}}/tmp/$(plugin_name)/cache"
+ versions_cache_dir="$ASDF_NODEJS_CACHE_DIR/versions-tab" We should never use I will open a new PR fixing this, and some other issues that will probably arise from this discrepancy between our logic and |
From what I understand from http://asdf-vm.com/manage/configuration.html#environment-variables, export ASDF_NODEJS_CACHE_DIR="${ASDF_DATA_DIR:-$HOME/.asdf}/tmp/$ASDF_NODEJS_PLUGIN_NAME/cache" |
Yes, that is right, it should not fallback to ASDF_DIR at all |
Check if that solves the issue. If it doesn't, we reopen the issue |
That fixed it for me. Thank you @augustobmoura <3 |
Hello @augustobmoura, thanks for your efforts in fixing this defect. I am writing to confirm that this fix works for me and I am now able to use |
Describe the Bug
when i try install nodejs, show error mkdir: cannot create directory ‘/opt/asdf-vm/tmp’: Permission denied
Steps to Reproduce
asdf list all nodejs 14
Expected Behaviour
show all list nodejs
Actual Behaviour
mkdir: cannot create directory ‘/opt/asdf-vm/tmp’: Permission denied
Environment
asdf plugins affected (if relevant)
ASDF INSTALLED PLUGINS:
nodejs https://github.com/asdf-vm/asdf-nodejs.git
The text was updated successfully, but these errors were encountered: