NPM Global Packages Not Working

MD
R
Markdown

Ok, this post is to help anyone with problems accessing Global NPM Packages through a terminal symlink.

Check where your NPM is storing the binaries of the global NPM packages

Run the command: npm -g bin It will be something like: /Users/claudiotx-air18/npm/bin

Export to PATH

Export for the current bash session only (temporary). Try it. export PATH=$PATH:/Users/claudiotx-air18/npm/bin Note: this will only change the PATH for that bash session.

Make it permanent

Ok, now for all users: sudo vi /etc/paths Then add the path to the list

For a specific user: sudo vi ~USERNAME/.bash_profile Then add the path to the list

Cross checks

Try running the package on the terminal nodemon If it doesn't work, cleaning needs to be done on your PATH echo PATH

Created on 2/15/2019