While attempting to install the node, I received the below error
% npm install
Error:
/Users/xyz/.asdf/shims/npm: line 7: /usr/local/Cellar/asdf/0.8.1_1/libexec/bin/asdf: No such file or directory
/Users/xyz/.asdf/shims/npm: line 7: exec: /usr/local/Cellar/asdf/0.8.1_1/libexec/bin/asdf: cannot execute: No such file or directory
CodePudding user response:
Check the file directory to which you are installing it from and change it. You can use the terminal or command prompt.
CodePudding user response:
When the asdf version number is upgraded, the shim paths are not updated; the solution is to rename the /.asdf/shims directory and run asdf reshim.
A workaround was provided here: https://github.com/asdf-vm/asdf/issues/1147