Update NPM installation instruction (#1556)

* Update NPM installation instruction

* further revise the doc
This commit is contained in:
William Cheng 2018-11-28 00:27:35 +08:00 committed by GitHub
parent 963173b357
commit 33016f2790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -343,20 +343,26 @@ cd /vagrant
### [1.7 - NPM](#table-of-contents) ### [1.7 - NPM](#table-of-contents)
There is also an [NPM package wrapper](https://github.com/HarmoWatch/openapi-generator-cli), available. There is also an [NPM package wrapper](https://www.npmjs.com/package/@openapitools/openapi-generator-cli) available for different platforms (e.g. Linux, Mac, Windows). (JVM is still required)
Please see the [docs](https://github.com/HarmoWatch/openapi-generator-cli) there for more information. Please see the [project's README](https://github.com/openapitools/openapi-generator-cli) there for more information.
Install it globally to get the CLI available on the command line: Install it globally to get the CLI available on the command line:
```sh ```sh
npm install @harmowatch/openapi-generator-cli -g npm install @openapitools/openapi-generator-cli -g
openapi-generator version openapi-generator version
``` ```
Or you install it as dev-dependency like this: Or install a particualar OpenAPI Generator version (e.g. v3.3.3):
```sh ```sh
npm install @harmowatch/openapi-generator-cli -D npm install @openapitools/openapi-generator-cli@cli-3.3.3 -g
```
Or install it as dev-dependency:
```sh
npm install @openapitools/openapi-generator-cli -D
``` ```
## [2 - Getting Started](#table-of-contents) ## [2 - Getting Started](#table-of-contents)