mixu / markdown-styles

Markdown to static HTML generator and multiple CSS themes for Markdown
1.85k stars 251 forks source link

Can't find generate-md command #32

Closed LacieJiang closed 8 years ago

LacieJiang commented 8 years ago

I run the following:

sudo npm install -g markdown-styles

and then, run the following:

generate-md --layout

the terminal show:

-bash: generate-md: command not found

My computer is MacBook Pro with OSX10.11

mixu commented 8 years ago

You probably have some kind of weird npm installation that doesn't have the right paths in $PATH. Have you tried sudo generate-md or npm install -g markdown-styles and generate-md (both with no sudo?

npm installs the commands in whatever it thinks is your global path location for commands, which you can see with npm bin -g and/or npm bin: https://docs.npmjs.com/cli/bin