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1u98xoR94ichw0jKhdppywARe43rGU96163RckIuFmFDQKZV9SMUrwpQFu4Z2D5yTNqnlLRfAgMBAAGjgZkwgZYwCQYDVR0TBAIwADAdBgNVHQ4EFgQU5FZqQ4gnVc+inIeZF+o3ID+VhcEwSAYDVR0jBEEwP4AUo562SGdCEjZBvW3gubSgUouX8bOhHKQaMBgxFjAUBgNVBAMMDUpldFByb2ZpbGUgQ0GCCQDSbLGDsoN54TATBgNVHSUEDDAKBggrBgEFBQcDATALBgNVHQ8EBAMCBaAwDQYJKoZIhvcNAQELBQADggIBANLG1anEKid4W87vQkqWaQTkRtFKJ2GFtBeMhvLhIyM6Cg3FdQnMZr0qr9mlV0w289pf/+M14J7S7SgsfwxMJvFbw9gZlwHvhBl24N349GuthshGO9P9eKmNPgyTJzTtw6FedXrrHV99nC7spaY84e+DqfHGYOzMJDrg8xHDYLLHk5Q2z5TlrztXMbtLhjPKrc2+ZajFFshgE5eowfkutSYxeX8uA5czFNT1ZxmDwX1KIelbqhh6XkMQFJui8v8Eo396/sN3RAQSfvBd7Syhch2vlaMP4FAB11AlMKO2x/1hoKiHBU3oU3OKRTfoUTfy1uH3T+t03k1Qkr0dqgHLxiv6QU5WrarR9tx/dapqbsSmrYapmJ7S5+ghc4FTWxXJB1cjJRh3X+gwJIHjOVW+5ZVqXTG2s2Jwi2daDt6XYeigxgL2SlQpeL5kvXNCcuSJurJVcRZFYUkzVv85XfDauqGxYqaehPcK2TzmcXOUWPfxQxLJd2TrqSiO+mseqqkNTb3ZDiYS/ZqdQoGYIUwJqXo+EDgqlmuWUhkWwCkyo4rtTZeAj+nP00v3n8JmXtO30Fip+lxpfsVR3tO1hk4Vi2kmVjXyRkW2G7D7WAVt+91ahFoSeRWlKyb4KcvGvwUaa43fWLem2hyI4di2pZdr3fcYJ3xvL5ejL3m14bKsfoOv
下一步(没截图),点右下角continue?
?选择框架:
创建Vue项目之前我们先了解一下Vue, Cors跨域, Axios, Nodejs和 elementUI 之间的关系
Vue.js、CORS(跨域资源共享)、Axios、Node.js和Element UI通常一起使用以构建现代Web应用程序。下面分别解释它们之间的关系:
Vue.js:
CORS(跨域资源共享):
Axios:
Node.js:
Element UI:
关系如下:
这些技术和库之间协同工作以实现一个完整的Web应用程序,其中Vue.js用于构建前端界面,Axios用于处理HTTP请求,Node.js用于构建后端服务,CORS用于解决跨域问题,而Element UI提供了一套现成的Vue组件,用于构建用户界面。
下载Node.js
?
?
测试是否安装成功
安装目录下创建两个新文件夹 node_global 和 node_cache?
管理员身份打开cmd命令窗口?
1.win + R
2.Ctrl + Shift + Enter 进入下列界面
输入以下命令:路径为两个新建文件夹node_global 和 node_cache?的路径
npm config set prefix "D:\develop\node_global"
npm config set cache "D:\develop\node_cache"
上述命令运行结果:两个路径下各生成一个_logs文件夹
?
配置环境变量
上述操作后会在安装目录中该路径下创建 node_modules 文件夹,如果该文件夹没有创建需手动创建。
?
?命令行窗口中进行命令测试:
npm install express -g
出现以下运行结果则安装成功!?
更改npm远程仓库地址(使用淘宝npm远程镜像):
npm config set registry https://registry.npm.taobao.org
?命令行窗口中进行命令测试:
npm config get registry
出现以下运行结果则安装成功!??
安装脚手架vue/cli?
#安装命令
npm install -g @vue/cli
#查看vue版本(大写V)
vue -V
?出现以下运行结果则安装成功!
location: 需提前创建,用于存储新创建项目
Node interpreter: node.exe所在路径
Vue CLI:@vue\cli所在路径,位于node_global\node_modules?文件夹中
?等待项目初始化……
?见下图,项目创建完成!(不成功记得再创建一次)
下章继续……