I'm trying to install loopback globally using:
npm i -g loopback-cli
then when I run the command lb
I get :
bash: lb: command not found
when I do nano ~/.bashrc
or nano ~/.bash_profile
I see an empty file.
Then I entered in those files
export PATH=/usr/local/lib/node_modules/node/bin/lb
lb
still not working, But then my other commands stopped working (node, ng, etc etc) too. Then I went back and erased those 2 files that I created, and my old commands went back to work, but the lb didn't work.
Try lb4 for latest version of loopback.