查看vue版本
vue --version
2.9.6
node -v
v15.0.1
win+x
管理员打开 powershell
(建议管理员身份启动,不然容易报错,ps:vscode和webstrom等终端默认是user身份启动。所以,建议还是用powershell创建vue项目)
cd XXX
vue init webpack my_learning2
? Project name my_learning2
? Project description A Vue.js project
? Author Wingsky6 <54062845+Wingsky6@users.noreply.github.com>
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Set up unit tests Yes
? Pick a test runner jest
? Setup e2e tests with Nightwatch? Yes
? Should we run `npm