一、安装node.js
官网:
安装完后cmd查看版本:
二、安装阿里巴巴镜像:
npm install -g cnpm --registry=http://registry.npm.taobao.org
三、安装vue:
安装vue文件:cnpm install i vue -S
安装脚手架:cnpm install -g @vue/cli
四、创建项目:
vue create hello_vue
五、使用vscode打开项目:
六、重新导入依赖:
cnpm install
七、 运行项目:
npm run serve
八、访问成功: