在IDEA中创建vue hello-world项目

02-29 阅读 0评论

工作中最近在接触vue前端项目,记录一下从0搭建一个vue hello world项目的步骤

1、本地电脑安装配置node、npm

D:\Project\vue\hello-world>node -v

在IDEA中创建vue hello-world项目,在IDEA中创建vue hello-world项目,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,我们,下载,配置,第1张
(图片来源网络,侵删)

v14.21.3

D:\Project\vue\hello-world>npm -v

6.14.18

D:\Project\vue\hello-world>

2、设置npm国内淘宝的景象

建议配置国内的景象,国外镜像下载依赖有时会失败

npm config set registry http://registry.npm.taobao.org/

在IDEA中创建vue hello-world项目,在IDEA中创建vue hello-world项目,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,我们,下载,配置,第2张
(图片来源网络,侵删)

3、在idea中安装Vue.js插件

网上搜索相关教程

4、创建vue.js项目

file->new project -> JavaScript -> Vue.js

在IDEA中创建vue hello-world项目

5、指定项目名字

例如项目名字默认为untitled

Finish,之后会执行 vue create tntitled帮助我们创建好项目

在IDEA中创建vue hello-world项目

在IDEA中创建vue hello-world项目,在IDEA中创建vue hello-world项目,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,我们,下载,配置,第5张
(图片来源网络,侵删)

项目创建好之后,会在idea下方出现以下提示信息

�  Generating README.md...

�  Successfully created project idea-create-hello-world-project.

�  Get started with the following commands:

 $ npm run serve

 

在IDEA中创建vue hello-world项目

6、在Terminal中执行启动命令

npm run serve

在IDEA中创建vue hello-world项目

7、在浏览器中访问 http://localhost:8080/

在IDEA中创建vue hello-world项目


免责声明
本网站所收集的部分公开资料来源于AI生成和互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,人围观)

还没有评论,来说两句吧...

目录[+]