- Remova o arquivo package-lock.json
- No package.json insira:
{ "name": "blog-do-codigo", "version": "1.0.0", "description": "Um blog simples em Node.js", "main": "server.js", "scripts": { "start": "nodemon server.js", "test": "echo \"Error: no test specified\" && exit 1" }, "license": "ISC", "dependencies": { "bcrypt": "5.0.1", "body-parser": "1.20.0", "dotenv": "16.0.1", "express": "4.18.1", "jsonwebtoken": "8.5.1", "moment": "^2.29.3", "nodemailer": "6.7.5", "nodemon": "2.0.16", "passport": "0.6.0", "passport-http-bearer": "^1.0.1", "passport-local": "^1.0.0", "redis": "^3.0.2", "sqlite3": "5.0.8" }, "devDependencies": { "eslint": "^8.16.0" } }
- No diretório raiz do projeto:
npm install
ounpm update
caso já tenha instalado as dependências - Execute o projeto com:
npm start
Node v16.15.0