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

111
Vistas
Not able to run node in the terminal

I opened the terminal on my mac, and first checked that I have node installed: node -v v14.17.5

I then tried to open a file I created index.html from Visual Studio Code and I got a throw err from the terminal. { The code:'Module_NOT_FOUND', requireStack:[] }

Thank you in advance for help.

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

0

I think you are trying to run an html file using node
just change the index.html to index.js

about 4 years ago · Juan Pablo Isaza Denunciar

0

node is a runtime environment that can execute javascript on a machine. So it can't read html file, but only js files. You can execute a js file with the following command in the terminal: node index.js

Et voilà.

Please note you can also write javascript directly in your terminal by entering a node environment.

node
const a = "hello"
a

// return "hello"

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