vue js npm start commands code example Example 1: run vue project by npm npm run serve Example 2: vue 3 cli npm npm install -g @vue/cli