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

112
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 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