run vue project by npm code example Example 1: run vue project by npm npm run serve Example 2: serve a vue project cd my-app npm run serve