到创建Vue项目,即是在输入vue init webpack my-first-vue 回车键之后显示
Command vue init requires a global addon to be installed.
Please run npm install -g @vue/cli-init and try again.
正确解决方法:
npm install -g @vue/cli-init
运行这个创建项目
Command vue init requires a global addon to be installed.
Please run npm install -g @vue/cli-init and try again.
npm install -g @vue/cli-init
运行这个创建项目