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

524
Vistas
Visual Studios create Standalone Javascript React Project. npm ERR! code ENOENT npm ERR! syscall open

When trying to create a new Standalone Javascript React Project in Visual Studios 2020, as I have many times before on other computers, I am getting this Error that it can't find package.json.

I have tried npm init, npm uninstall then reinstall, also uninstalling and reinstalling create-react-app.

I have tried this in my main folder and at path C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE

To try and create package.json all with no success.

This should just default create, any ideas?

Edit: It creates this empty project Empty Project Also if I separately use npx create-react-app it works fine.

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Ok, I didn't quite understand your problem but try this.

  1. First,

    npm init -y 
    

    in the terminal. This will create a package.json file.

  2. Second, create an index.js file in the same directory where you type in your code.

  3. Third, Go to package.json file and add a script "start":"node index.js"then, go to the terminal and type npm start. or, you can just do node index.js in the terminal without adding script in package.json.

about 4 years ago · Juan Pablo Isaza Denunciar

0

To get it to work I found where one of the package.json files was and copy and pasted it to

C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE

For now, it seems to be working if anyone comes behind me and gets as fed up as I have.

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