Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

188
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda