※前提条件:本情報はVue 2.0を基づいて説明してる
VUE的使用需要用到node.js,下载地址:
https://nodejs.org/en/download/
下载 node-v16.14.2-x64.msi 后安装,结束收cmd输入命令
node -v //v16.14.2
npm install -g cnpm
如果网速太慢的话,可以如下切换到淘宝的镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org; //2022/04/12现在这个镜像速度也不行了
cnpm install --global vue-cli
验证是否安装成功
vue //输出下面vue信息,则安装成功
C:\Users\Administrator>vue Usage: vue <command> [options] Options: -V, --version output the version number -h, --help output usage information Commands: init generate a new project from a template list list available official templates build prototype a new project create (for v3 warning only) help [cmd] display help for [cmd]
コメント: