NPM install issue
vram1980 opened this issue · 2 comments
vram1980 commented
Just installed via npm like so:
$ npm install -g sitemap-generator-cli
When I run :
$ sitemap-generator -v
I get:
-bash: sitemap-generator: command not found
I have never had any other issues installing npm modules globally, is there something I should being differently?
lgraubner commented
Your command looks fine. There is nothing special, you install it just like any other global module.
Probably the node_modules are not in your $PATH
. This means bash can't find this system command. So you have to add the folder to make it look at the right place.
Read more in this Stack Overflow Thread.
vram1980 commented
This worked thanks!