Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

458
Views
How to create a React project using an old version of Create React App?

I am learning react from an old tutorial, so I have to create a project with the version 1.5.2 of Create React App. I have installed create-react-app@1.5.2 globally with no problems. After I executed npx create-react-app it uses the latest version of Create React App.

Is there any way that I could do it, or where can I find the code for a project with that version?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It's no possible because of several reasons:

I installed the package "create-react-app@1.5.2" from here to assure I'm using the correct create-react-app version:

npm init -y
npm install create-react-app@1.5.2
    
or 

yarn init -y
yarn add create-react-app@1.5.2

In the \node_modules\create-react-app folder I executed the command:

node index.js app-folder

And it installed the last version of react without a template because it's an old version of the package, but still the latest version:

enter image description here

Checking the file createReactApp.js I can see it's meant to be that way, even if it's an old version of the builder "create-react-app" it will install the last version of the packages.

Also, if you try this command: node index.js app-folder --scripts-version 1.5.2

It will not found the version you want, instead, it will show a list of available versions of react-scripts.

enter image description here

According to the date, the correct packages are:

react: 16.4.2 react-dom: 16.4.2 react-scripts: 1.1.5

So you can install the version you want with this:

npm init -y
npm install react@16.4.2 react-dom@16.4.2 react-scripts@1.1.5

or

yarn init -y
yarn add react@16.4.2 react-dom@16.4.2 react-scripts@1.1.5
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!