Npm run dev command does not enter the server

I created my project, installed serverless and all the folders were created correctly, but when I give the npm run dev command to check the server an error appears.

Could you share the serverless.yml, you package.json and the exact error message?

I managed to solve. The problem was in the git integration that was missing.

Good afternoon

The whole problem with my project is that I am not able to correctly install serverless through the command
npm i -g serverless
does not complete the installation successfully.