Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

312
Views
La instalación de Node.js fue exitosa pero, al ejecutar un archivo de prueba, muestra un error

Este es el error mientras ejecuto desde el símbolo del sistema de Node.js:
Este es el error mientras ejecuto desde el símbolo del sistema de Node.js

Este es el error mientras ejecuto Power Shell o CMD:
Este es el error mientras ejecuto Power Shell o CMD

Este es el archivo de código:
Este es el archivo de código.

Este es el archivo de error de power shell while command - "node myfirst.js":
Este es el archivo de error de power shell while command - "node myfirst.js"

Código:

 var http = require('https'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end('Hello World!'); }).listen(8080);

Error:

 asd.js : The term 'asd.js' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + asd.js + ~~~~~~ + Category Info : ObjectNotFound: (asd.js:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Para ejecutar su script node.js, escriba node <filename> , en su caso: node ast.js

El error https://i.stack.imgur.com/llqlm.png indica que hay un conflicto de puertos, otro proceso ya usa el puerto 8080.

Para solucionarlo, elimine el proceso que usa el puerto 8080, o simplemente use otro puerto:

 var http = require('https'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end('Hello World!'); }).listen(9999); // another port
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!