I am reading around SO and I still can't fix it. I installed Grunt-cli and bower global and when I run it I get
bash: grunt: command not found
So I didn't have a . bash_profile
and I added it. And I put this inside:
export PATH=/.node/lib/node_modules:$PATH
But still not working. If you need the prefix is:
prefix = "/root/.node"
I am using debian.
Did you remember to reload your bash profile after creating it? If not, just open a terminal and type source ~/.bash_profile
This will exit the shell and log you back in so that it can recognize changes made to it.
I solved the problem with brew install.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.