文章目录
vue安装方式概述
根据vue
官方文档,快速安装手册:https://cn.vuejs.org/guide/quick-start.html
所述,建议安装nodejs
的18.3
及以上版本来开发vue3项目。
但是实测nodejs 16+
也可以。
安装命令行如下:
# npm
$ npm create vue@latest
# pnpm
$ pnpm create vue@latest
# yarn
$ yarn create vue@latest
# bun
bun create vue@latest
我在nodejs
的16版本,运行如上命令后,不会报错,而是会提示你要安装:
Need to install the following packages:
create-vue@latest
Ok to proceed? (y)
当我输入y
后,就会安装并执行