安装好 node npm 转 yarn 之后
创建 yarn create vue/cli vue3todolist(文件名)
一些选择按自己需要选就好,
安装好之后
cd vue3todolist
yarn
yarn dev
如果出现报错 这种一般是依赖版本低所造成。
error create-vue@3.6.4: The engine “node” is incompatible with this module. Expected version “>=v16.20.0”. Got “16.14.2”
error Found incompatible module.
只需要 yarn config set ignore-engines true 或改为提示的版本