安装 node.js : (自带npm)
查看版本
node -v
npm -v
windows环境可以安装mis后缀的
安装淘宝镜像加速器
npm install -g cnpm --registry=https://registry.npm.taobao.org
安装淘宝镜像之后,npm 大部分安装的速度都会快起来,如果还是安装不了,就使用cnpm
注意:能使用 npm 安装的东西不要使用 cnpm ,cnpm可能会在生产上出问题
查看版本
cnpm -v
安装 vue-cli
npm install -g @vue/cli
如果一直卡在 checking installable status,就尝试
npm install -g @vue/cli
安装完毕之后
查看版本
vue --version
查看模板
vue list
安装webpack
npm install webpack -g
npm install webpack-cli -g
【附】----------------------------------------------------------------------------------------------------
安装yarn:
npm i yarn -g
https://www.cnblogs.com/xiaonian8/p/13714285.html
安装 vue相关:
https://www.cnblogs.com/jasonLiu2018/p/11064753.html
https://blog.csdn.net/weixin_43170297/article/details/107039529