Edit or create .bashrc file
Edit or create the following file with an editor, e.g. nano
nano $HOME/.bashrc
In most cases the file is empty. If it is, then add the following line
export PATH=$HOME/.local/opt/npm/node_modules/.bin:$PATH
Then save the file. In the nano editor you can do this with CTRL + O, ENTER and then CTRL + X to close the file.
Updated: 17.07.2024