Prerequisites
1. Install node.js locally, or unzip the installation package
配置环境变量→ 任意路径输入CMD
配置环境变量→ 解压路径输入CMD
2. Change npm source (otherwise the download warehouse may report an error)
npm config get registry 查看源
npm config set registry https://registry.npmmirror.com 换源
npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass node-sass有可能要单独配置
Refer to
NPM. How to change the source?
Node-sass configuration Taobao mirror warehouse does not take effect solution
3. Higher versions may be incompatible, lower the npm version.
降低npm版本到6
npm install ---global npm@6
swagger-markdown installation and use
https://github.com/syroegkin/swagger-markdown
https://www.npmjs.com/package/swagger-markdown
Installation
npm install -g swagger-markdown
Usage
swagger-markdown -i D:test\swagger.yaml