I need to create a new react application with create-react-app version 1.0.10. However, when I do create-react-app myProject it automatically uses the latest version of create-react-app available at that time. Is there any commands available to make create-react-app use a specific version to create a project template?
1 Answer
You will need to run:
npm install --save --save-exact [email protected]
or
yarn add --exact [email protected]
this will only work in in a project that has not been ejected yet, read this for more info
npm install [email protected]? Most likely it's installed globally so you'd have to install it locally and then run it from there.create-react-appis a global package, so you have 1 version of that package installed globally on your machine and wherever you are in your computer, you can typecreate-react-app myProject. As @HenrikAndersson suggested, if you install globally a specific version:npm -g install [email protected]every time you use it, it's going to be that version