docs(v2): fix typo in command on installation page (#2886)

* Fix installation.md typo

Checking the docusaurus version should be done with

```
npx docusaurus --version
```

not 

```
npm docusaurus --version
```

otherwise it prints the version of `npm` instead of `docusaurus`.

* docs: Fixed installation.md for checking version.

Specifying `npm` for the version will yield the version of NPM
instead of docusaurus itself.  Use `npx` for the docusaurus version.
This commit is contained in:
Paul Glezen 2020-06-05 18:14:53 -07:00 committed by GitHub
parent 664ceb7771
commit 4278cebf67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ npm install
To check that that the update occurred successfully, run:
```bash npm2yarn
npm docusaurus --version
npx docusaurus --version
```
You should see the correct version as output.

View file

@ -123,7 +123,7 @@ npm install
To check that that the update occurred successfully, run:
```bash npm2yarn
npm docusaurus --version
npx docusaurus --version
```
You should see the correct version as output.