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

190
Visualizações
I have moved my package.json file one folder up in react project and now `npm start` is not working

my current folder structure is

   -- project folder
         |-- package.json
         |-- react-project
                  |-- src folder
                  |-- public folder

My node version is 18

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

In order for npm start to work, you have to run the command from the same directory as your package.json.

node_modules, package-lock.json, and package.json should always be at the root of the project as a good practice.

If you move these files/folders it can disrupt the pathing of them.

For example, inside package.json at the top you will a line somewhat like: "main": "node_modules/expo/AppEntry.js". If you move node_modules or package.json, then this will no longer work. It would need to be changed to something like, "./node_modules" or "../node_modules"

If there is a specific reason you need to move this folder, then you will have to do some reconfiguring to ensure the pathing is correct.

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