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

148
Vistas
I can not run console log in VSCode

I am brand new, have recently learned HTML and CSS. After starting JavaScript i tried to run this and check it in console log.

// variables

// numeric
var x = 1

x = 24

console.log(x)

I am using VSCode and installed Code Runner. I right clicked to run code and receive this error msg.

[Running] node "/Users/C/Desktop/Project 02/src/index.js"
/bin/sh: node: command not found

[Done] exited with code=127 in 0.021 seconds 

Not sure what to do and I basically started trying to learn Javascript today.

I am using a MacOS - Catalina if that helps.

Thank you for any input and I apologize if this has been asked before, since I just joined Stackoverflow today.

Edit: Thank you for all the help. I needed to download Node.js that fixed the issue.

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

0

You need to install NodeJS on your Mac

nodejs download page

about 4 years ago · Juan Pablo Isaza Denunciar

0

Although the syntax is correct, I would recommend defining a variable by the following

There are 3 ways to define a variable:

  • let
  • var
  • const

For your example, we will use let, the modified syntax is given below:

let x = 24
console.log(x);

Secondly, you need nodejs, download it from here and run node .

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