I fail to install Node.js with asdf on a fresh macOS (M1 chip). How can I fix this? My environment seems to be very vanilla.
$ asdf install nodejs 14.15.4
/Users/stefan/.asdf/plugins/nodejs/bin/../lib/utils.sh: line 35: local: -A: invalid option
local: usage: local name[=value] ...
/Users/stefan/.asdf/plugins/nodejs/bin/../lib/utils.sh: line 51: Fermium: unbound variable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3490 0 3490 0 0 37934 0 --:--:-- --:--:-- --:--:-- 37934
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10858 0 10858 0 0 106k 0 --:--:-- --:--:-- --:--:-- 107k
Binary not found for version 14.15.4
Line 35 of utils.sh
local -A aliases
Line 51 of utils.sh
if [ -z "${aliases[lts]:-}" ]; then
printf "lts\t%s\n" "$version"
aliases[lts]="$version"
fi
brew install bash
For more details: https://github.com/asdf-vm/asdf-nodejs/issues/199