I want to create a react application with typescript template.
npm version: 10.2.4
node version: 20.1.1
I tried the following commands but got errors:
First command
npx create-react-app my-app --template typescript
Got error:
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path D:usr
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'D:usr'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Second command
npm create-react-app my-app --template typescript
Got error:
Unknown command: "create-react-app"
To see a list of supported npm commands, run:
npm help```