node.js - PATH - resetting PATH to avoid manual changing of bash_profile -


somewhere along lines, changed path location , when install npm apps--in case, nodemon, command not found error.

i had issue several months ago grunt , found great tutorial online , talked adding path manually .bash_profile file.

i've done numerous times installs ranging bower shelljs , serverless aws programming.

for odd reason, files saved in: /users/mac/npm/lib/node_modules

and others saved in: /users/mac/npm/lib/node_modules/lib/node_modules.

i'm not quite sure why there's /lib/ directory reference or how happened.

i okay manually editing .bash_profile getting tired when doing node projects , got fed when installing nodemon.

it has been understanding path maps "executable" whatever's been installed, seems nodemon js file , when set path js file, still same error.

(am wrong in saying installs "executables"?)

i can, however, use path , run nodemon via terminal, that's rather pointless.

i got 2 questions:

1) how can reset, if @ all, path setup anytime install something, installs in 1 spot?

2) how can map nodemon path since it's js file?

if these have been answered elsewhere--some of answers found didn't seem apply i'm experiencing--that'd helpful.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -