5

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?

4
  • Did you try installing 1.0.10? npm install [email protected]? Most likely it's installed globally so you'd have to install it locally and then run it from there. Commented Aug 6, 2017 at 8:03
  • you mean installing it locally in a project? Commented Aug 6, 2017 at 8:27
  • 2
    create-react-app is 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 type create-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 Commented Aug 6, 2017 at 9:17
  • You could specify "create-react-app":"1.0.10." in package.json, and then do "npm install" and then it should install the package for you(note this is without the package being installed already). Commented Aug 6, 2017 at 9:30

1 Answer 1

5

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.