lgraubner/sitemap-generator-cli

NPM install issue

vram1980 opened this issue · 2 comments

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?

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.

This worked thanks!