asdf fails node install with: permission denied error, how to grant it permission?

1.1k Views Asked by At

When I try to install a node version with asdf-vm, I get the following error message:

Trying to update node-build... ok
mkdir: cannot set permissions '/tmp': Permission denied
node-build: TMPDIR=/tmp is set to a non-accessible location
1

There are 1 best solutions below

0
On

Try setting TMPDIR to some directory that the installer can write to (it's running as you so anywhere you can write to should work).

For example: export TMPDIR=~/tmp/.

You may also want to report this issue to the maintainers of the asdf-nodejs plugin as the temp dir logic should work out of the box on all supported systems.