“Vue项目搭建”的版本间的差异
跳到导航
跳到搜索
第4行: | 第4行: | ||
=== '''安装webpack''' === | === '''安装webpack''' === | ||
npm install webpack –g | npm install webpack –g | ||
[[文件:Webpack.png| | [[文件:Webpack.png|缩略图|665x665px|无]] | ||
第21行: | 第21行: | ||
npm install -g @vue/cli | npm install -g @vue/cli | ||
[[文件:@vue-cli.png | [[文件:@vue-cli.png|缩略图|803x803像素|无]] | ||
第42行: | 第42行: | ||
=== 创建vue新项目 === | === 创建vue新项目 === | ||
在你想要放置的目录下执行Vue create my_text | 在你想要放置的目录下执行Vue create my_text | ||
[[文件:My-text.png | [[文件:My-text.png|缩略图|547x547像素|无]] | ||
2021年11月12日 (五) 08:09的版本
vue环境搭建
vue项目搭建
安装webpack
npm install webpack –g
安装vue脚手架
npm install -g @vue/cli
创建vue新项目
在你想要放置的目录下执行Vue create my_text
三种配置选择一种回车
启动刚创建的项目
Cd my_test
Npm run serve
访问项目
访问 http://localhost:8081/
项目所在位置
参考资料
Node.js入门:http://www.runoob.com/nodejs/nodejs-tutorial.html
Npm命令:http://www.runoob.com/nodejs/nodejs-npm.html
Vue官网:https://cn.vuejs.org/
Vue CLI:https://cli.vuejs.org/zh/guide/
Es6常用语法:https://blog.csdn.net/itzhongzi/article/details/73330681
Element前端框架 https://element.faas.ele.me/#/zh-CN/component/installation