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