随笔 - 583  文章 - 0  评论 - 31  阅读 - 90万
04 2021 档案
修改windows的host文件
摘要:host文件位置: C:\Windows\System32\drivers\etc 修改后,需要执行命令: ipconfig /flushdns 参考: https://blog.csdn.net/bigbaojian/article/details/86662374 阅读全文
posted @ 2021-04-29 15:47 sunylat 阅读(299) 评论(0) 推荐(0) 编辑
Vue - yarn安装和换国内源
摘要:一,安装: npm install -g yarn 二,切换国内源 1、查看一下当前源: yarn config get registry 2、切换为淘宝源: yarn config set registry https://registry.npm.taobao.org 3、切换为自带的: yar 阅读全文
posted @ 2021-04-22 20:12 sunylat 阅读(1778) 评论(0) 推荐(0) 编辑
Vue - 一个配置文件引发的问题
摘要:我在虚拟机中访问主机中的Vue网站,发现不能正常访问,打开浏览器调试模式,看到以下错误: Uncaught SyntaxError: Block-scoped declarations (let, const, functionUncaught SyntaxError: Block-scoped d 阅读全文
posted @ 2021-04-22 19:57 sunylat 阅读(321) 评论(0) 推荐(0) 编辑
Vue - webpack版本引发的错误!
摘要:错误截图: 引起错误原因:webpack版本,项目使用4版本。 解决办法: 1,删除先前版本webpack。 npm uninstall webpack 2,安装4版本的webpack。 npm install webpack@^4.0.0 --save-dev 参考: https://blog.c 阅读全文
posted @ 2021-04-20 13:12 sunylat 阅读(179) 评论(0) 推荐(0) 编辑
Vue - 跨域问题解决方法。
摘要:VUE访问接口的时候,很可能出现跨域请求,从而被提供接口的服务器拒绝,这个问题可以直接在VUE里面解决,解决方法:在vue.config.js里面加入配置信息。 在module.exports中加入: devServer: { proxy:'http://localhost:8089' }, 这里的 阅读全文
posted @ 2021-04-18 11:52 sunylat 阅读(358) 评论(0) 推荐(0) 编辑
Vue - webpack的BUG
摘要:当编译VUE工程时候,出现了错误: 解决方法:修改出错代码。 getEntryJs(outputName, assetSource, cssCode) { var config = {url: outputName, colors: this.options.matchColors} var con 阅读全文
posted @ 2021-04-18 11:48 sunylat 阅读(171) 评论(0) 推荐(0) 编辑
Node - 换淘宝源
摘要:一、临时使用 npm --registry https://registry.npm.taobao.org install express 二、永久使用 npm config set registry https://registry.npm.taobao.org 三、验证是否更换成功 npm co 阅读全文
posted @ 2021-04-12 21:24 sunylat 阅读(406) 评论(0) 推荐(0) 编辑
Vue - WebStorm自带格式化和ESLint冲突的解决方法!
摘要:默认情况下,WebStorm自带格式化(Ctrl+Alt+L)和ESLint冲突,尽管在代码上鼠标右键,选择“Fix ESLint problems”菜单项,也可以解决这种冲突,但是每次都这样实在太麻烦了!我们可以在工程文件的“.eslintrc.js”文件上鼠标右键,随后选择“Apply ESLi 阅读全文
posted @ 2021-04-11 22:19 sunylat 阅读(2333) 评论(0) 推荐(1) 编辑
Git设置代理
摘要:使用yarn安装东西时候出现的错误: fatal: unable to access 'https://github.com/nhn/raphael.git/': Unknown SSL protocol error in connection to github.com:443 最终给Git安装代 阅读全文
posted @ 2021-04-11 18:31 sunylat 阅读(678) 评论(0) 推荐(0) 编辑
TypeScript - 安装
摘要:在已经安装了node之后,在命令行中输入: npm install -g typescript 打印版本号,验证是否安装成功: tsc -v 参考: https://www.runoob.com/typescript/ts-install.html 阅读全文
posted @ 2021-04-11 13:37 sunylat 阅读(63) 评论(0) 推荐(0) 编辑
Vue - 查看VUE和CLI版本
摘要:一,查看Vue版本: 1,在命令行输入命令: npm list vue 2,进入项目中package.json文件直接查看。 二,查看Vue/cli版本 在命令行输入下面两个命令哪个都可以: vue -V 或 vue --version 参考: https://www.cnblogs.com/lil 阅读全文
posted @ 2021-04-11 13:13 sunylat 阅读(6750) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示