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

385
Vistas
Cannot find module '/workspace/mySQL/node_modules/faker/index.js'

Hello I'm trying to build a project but I cant get the terminal to run to the app.js file as it reports an error and I dont know how to fix it. Just to mention that I've downloaded faker package using (npm install faker), also I've created an app.js file and npm init -y to create a package.json for the warnings. But whenever I try to type ( node app.js) I get the following error: internal/modules/cjs/loader.js:329 throw err; ^

Error: Cannot find module '/workspace/mySQL/node_modules/faker/index.js'. Please verify that the package.json has a valid "main" entry

at tryPackage (internal/modules/cjs/loader.js:321:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:534:18)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:888:27)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object.<anonymous> (/workspace/mySQL/app.js:1:13)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32) {

code: 'MODULE_NOT_FOUND',
path: '/workspace/mySQL/node_modules/faker/package.json',
requestPath: 'faker'

enter image description here

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

0

as I saw you have added files in the node-modules directory. Remove files from that directory into the main directory.

It will be like this

  • Mysql
    • node-modules
    • app.js
    • package.json
    • file.sql
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