运行新项目时先在项目目录下运行下面代码,安装依赖node_modules

npm install -g @vue/cli-service-global

运行项目 npm run serve

原文地址:https://www.cnblogs.com/semth/p/14150399.html