onury / docma

A powerful tool to easily generate beautiful HTML documentation from JavaScript (JSDoc), Markdown and HTML files.
https://onury.io/docma
MIT License
334 stars 34 forks source link

The term 'docma' is not recognized as the name of a cmdlet. #112

Open iWanheda opened 3 years ago

iWanheda commented 3 years ago

Hi, I installed docma with

npm install docma -D

(doesn't create anything) and whenever I want to run docma I get that error.

image

Image

takase1121 commented 3 years ago

You might not be familiar with how npm works at all.

If you install docma as devDependencies, you can only run it via npm run-command or npx.

to run docma with npm run-command, you can add it to scripts in your package.json:

"script": {
    "doc": "docma command here"
}

To run it with npx, use:

$ npx docma