vue的安装和脚手架搭建
作者:admin 来源: 2022/8/26 14:53:56

1、安装VS code

    链接:Download Visual Studio Code - Mac, Linux, Windows

2、安装Node js

    下载 | Node.js 中文网 (nodejs.cn)

3、查看安装是否成功

    打开cmd,分别输入node -v npm -v

4、设置镜像源

// npm设置新淘宝源
npm config set registry https://registry.npmmirror.com
// npm设置回本源
npm config set registry https://registry.npmjs.org
查看镜像源npm config get registry



// yarn设置淘宝源
yarn config set registry https://registry.npmmirror.com
// yarn 设置回本源
yarn config set registry https://registry.yarnpkg.com/

5、创建vue项目

    在命令行输入:npm init vue@latest

    按提示依次输入:cd test,npm install,npm run dev

浏览器打开:http://127.0.0.1:5173/,浏览脚手架项目。

称      呼:
联系方式:
您的评论:
技术支持:l.w.dong@qq.com www.luweidong.cn
广州市   wx:lwdred
Copyright © 2014 三味书屋 All Rights Reserved
技术支持:l.w.dong@qq.com  sitemap xml  sitemap html

粤公网安备44010602011869号

粤ICP备13031080号-1