Skip to content

Commit

Permalink
Add clarifying note to TypeScript docs warning about global install o…
Browse files Browse the repository at this point in the history
…f CRA (#6945)

Added block quote with warning about issues when CRA is installed globally.
  • Loading branch information
methodbox authored and amyrlam committed May 1, 2019
1 parent 4b8b38b commit 6710f52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docusaurus/docs/adding-typescript.md
Expand Up @@ -17,6 +17,8 @@ npx create-react-app my-app --typescript
yarn create react-app my-app --typescript
```

> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always uses the latest version.
To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it:

```sh
Expand Down

0 comments on commit 6710f52

Please sign in to comment.