Skip to content

Commit 6710f52

Browse files
methodboxamyrlam
authored andcommitted
Add clarifying note to TypeScript docs warning about global install of CRA (#6945)
Added block quote with warning about issues when CRA is installed globally.
1 parent 4b8b38b commit 6710f52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docusaurus/docs/adding-typescript.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ npx create-react-app my-app --typescript
1717
yarn create react-app my-app --typescript
1818
```
1919

20+
> 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.
21+
2022
To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it:
2123

2224
```sh

0 commit comments

Comments
 (0)