User Tools

Site Tools


Sidebar

Go Back

Refresh

You are not allowed to add pages

Direct Link

library:web:vue_misc

This is an old revision of the document!


VUE Misc

1. 安装

  • 安装 node 环境(包含 npm包管理器)
  • 安装 vue cli 脚手架
  • 更换淘宝镜像
  • 初始化第一个vue项目

1.1 安装 node 环境

# For MACOS

brew install node
# 安装过程日志 ...

# For Windows
download from https://nodejs.org/zh-cn/download/, and install

# Check it
node -v
v16.4.2

npm -v
7.18.1

1.2 安装 vue cli 脚手架

npm install -g vue

vue -V
2.9.6

1.3 更换淘宝镜像

npm install -g cnpm –registry=https://registry.npm.taobao.org

1.4 初始化第一个vue项目

test  vue init webpack firstApp

1.5 测试

2. 升级Node.js

npm cache clean -f
npm install -g n
library/web/vue_misc.1662695773.txt.gz · Last modified: 2022/09/09 11:56 by lhaosen