node.js - Global node modules not recognized -
i reading around , still can't fix it. installed grunt-cli , bower global , when run get
bash: grunt: command not found
so didn't have .bash_profile
, added it. , put inside:
export path=/.node/lib/node_modules:$path
but still not working. if need prefix is:
prefix = "/root/.node"
i using debian.
did remember reload bash profile after creating it? if not, open terminal , type source ~/.bash_profile
this exit shell , log in can recognize changes made it.
Comments
Post a Comment