npx create-react-app@next --scripts-version=@next --template=cra-template@next my-js-app
npx create-react-app@next --scripts-version=@next --template=typescript@next my-ts-app
To update an existing app you can change the react-scripts
version in package.json
to next
and then run yarn
or npm install
You can see a list of all the changes in the 4.0 release here
In case helps someone. After reading the error message again. I noticed I was using node 11.14. The package in mention must be incompatible with that version of node. I switched to node 12
And now I was able to create a new app with typescript support.