Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

462
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda