Reputation: 1207
I installed npm and node using nvm, and it work's fine, but after computer rebot it shows some errors.
Right after rebot open dialog (in Polish language) saying:
error loading the file /home/pawel/.profile /home/pawel/.bashrc: line 5: npm: command not found
Upvotes: 2
Views: 418
Reputation: 3473
You are using nvm
which allows you to have multiple versions of Node.js and to automatically select one of them. This works by placing a script at the end of your .bashrc
that allows the correct Node.js to be picked up. So if you try to access npm
in the beginning of that same script, it won't work because that path has not been set up.
Upvotes: 1