[Vuejs]-Unable to Run Vue Js Project From Command Prompt

0👍

You’re trying to start main.js with node main.js, but that file is located under the src subdirectory in your screenshot (i.e., the command should’ve been node src/main.js).

But that directory structure looks like a Vue CLI generated project, so you should instead be using the NPM scripts (see package.json for available scripts) to start the development server:

npm run serve

Leave a comment