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

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -