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

184
Views
¿Cómo elimino los errores de npm y hago que mi puerto se ejecute?

Estoy tratando de aprender a crear una API y sigo recibiendo errores al intentar ejecutar npm run start .

 { "name": "climate-change-api", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start":"nodemon index.js" }, "author": "Norbert Ogutu", "license": "ISC", "dependencies": { "axios": "^0.23.0", "cheerio": "^1.0.0-rc.10", "express": "^4.17.1" } }

índice.js

 const PORT = 8000 const express = require('express') const axios = require('axios').default const cheerio = require('cheerio') const app = express() app.listen(PORT,() => console.log(`server running on PORT ${PORT}`))

Y estos son los errores:

 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! climate-change-api@1.0.0 start: `nodemon index.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the climate-change-api@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\THE OGUTUS\AppData\Roaming\npm-cache\_logs\2021-10-15T16_37_45_680Z-debug.log
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Dado que el index.html al que se hace referencia no está haciendo mucho, excepto hacer referencia a las bibliotecas instaladas... y usted tiene esas bibliotecas enumeradas como dependencias... Me pregunto si tal vez olvidó ejecutar npm install ( npm i para abreviar) para instalar esas dependencias ?

Alternativamente, dado que no pudo incluir Nodemon en sus dependencias, ¿quizás se olvidó de npm i nodemon ?

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!