I am getting an error when trying to run npm run serve. At first I installed node.js then vue as well as vue/cli. But when I am trying to run server as -> npm r
npm run serve
I think you are using cmd in windows.
cmd
Try deleting the node_modules folder and after that run npm i from the cmd.
node_modules
npm i
Then try running npm run serve again and see if it works this time