![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
常见错误总结
Yolanda_NuoNuo
女程序媛,瑜伽教练
展开
-
npm WARN postcss-modules@4.2.2 requires a peer of postcss@^8.0.0 but none is installed. You must ins
问题描述:今天在安装 vue-virtual-scroll-list出现报错信息如下npm WARN postcss-modules@4.2.2 requires a peer of postcss@^8.0.0 but none is installed. You must install peer dependencies yourself.其实不只是vue-virtual-scroll-list,有时候安装其他的插件也会出现这个报错,如果是按照报错信息npm install -g npm-原创 2021-09-09 20:23:32 · 1856 阅读 · 0 评论 -
解决mac突然连不上wifi了(wifi出现灰色小感叹号!)
记一次可怕的经历,不知道是不是我装VPN软件还是点啥了,突然我的mac就连不上wifi了,电脑的wifi图标上出现一个灰色的小感叹号。但是手机,ipad都能连上wifi上网,不能上网的mac它还叫mac嘛?后面到处搜了无数帖子,真是一段崩溃而又无助并且彷徨中带着些许烦躁的时间,试了无数的法子,终于让心爱的本本恢复了正常。记下这段可怕的经历的解决办法,希望它再也不要发神经了。第一步,打开访达按住command + shift + G出现一个搜索框,输入/资源库/Preferences/Syst原创 2021-07-26 01:12:16 · 23344 阅读 · 6 评论 -
mac解决npm不管装啥都是zsh: command not found
mac解决npm不管装啥都是zsh: command not found一、背景描述今天想研究一下性能工具lighthouse,yolanda@YolandadeMacBook-Pro ~ % npm install -g lighthouse added 145 packages in 7syolanda@YolandadeMacBook-Pro ~ % lighthouse --versionzsh: command not found: lighthouse没想到刚装上就找不到这原创 2021-07-19 23:41:30 · 6734 阅读 · 0 评论 -
nodejs连Mysql报错Client does not support authentication protocol requested by server; consider upgradin
nodejs连接Mysql数据库报错Client does not support authentication protocol requested by server; consider upgrading MySQL client一、背景描述最近在写nodejs的项目,于是用nodejs连接Mysql数据库二、代码const mysql = require('mysql');// 创建连接const conn = mysql.createConnection({ host: '原创 2021-07-05 22:46:35 · 955 阅读 · 4 评论 -
vite安装失败问题Emitted ‘error‘ event on ChildProcess instance at:-4058esbuild.exe
一、背景描述1、局部安装npm install vite -D2、启动npx vite3、报错了throw er; // Unhandled ‘error’ eventEmitted ‘error’ event on ChildProcess instance at:errno: -4058,code: ‘ENOENT’,syscall: ‘spawn D:\mycode\front\node_modules\esbuild\esbuild.exe’,path: ‘D:\mycode\原创 2021-06-21 16:22:41 · 10953 阅读 · 3 评论 -
vue : 无法将“vue”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确, 然后再试一次
一、背景描述电脑坏了,换电脑,害~1、现象:命令行输入vue create项目报错了~2、报错信息vue : 无法将“vue”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次3、解决办法设置环境变量(1)找到nodejs安装目录E:\codeEnvironment\nodejs\path新建两个空文件夹node_cache和node_global,like this(2)设置环境变量用户变量的PathE:\c原创 2021-06-21 14:09:52 · 2023 阅读 · 0 评论 -
Error: Cannot find module ‘vue-loader/dist/index‘
1、问题描述:用const { VueLoaderPlugin } = require(‘vue-loader/dist/index’);的时候打包保错Error: Cannot find module ‘vue-loader/dist/index’2、解决办法害,就是版本的原因,版本不是最新的npm install vue-loader@next安装一下就好了...原创 2021-06-21 09:38:51 · 889 阅读 · 0 评论 -
JS匿名函数Uncaught TypeError: x is not a function
一、背景描述今天遇到了一个小问题,我要记录一下~就是这个类似这个亚子的一个代码片段function test() { console.log('xixi')};const a = 1(function func1() { console.log('haha')})()然后它就报错了,就是报这个错Uncaught TypeError: 1 is not a function二、问题分析这个是因为匿名函数前的这个语句const a = 1木有加分号三、解决办法方法一、原创 2021-06-08 22:54:03 · 746 阅读 · 2 评论 -
Cannot read property ‘then‘ of undefined
今天在写一个异步小demo的时候,报错说Uncaught TypeError: Cannot read property ‘then’ of undefinedat 7-async-2.html:36在仔细的检查以后,发现自己在函数中忘记返回Promise对象了,特此记录一下~完整代码片段<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta h原创 2021-06-07 21:38:24 · 1158 阅读 · 0 评论 -
mac环境zsh: command not found: yarn
mac环境下在VScode里面跑这个是没有用的 npm install -g yarn但是可以在mac的终端里跑这个brew install yarn然后就好啦相关博客mac安装Typescript错误command not found: tsc原创 2021-05-27 19:45:05 · 9987 阅读 · 1 评论 -
mac安装Typescript错误command not found: tsc
今天在我心爱的mac本本上安装typescript的时候出现了这个错误zsh: command not found: tsc首先是安装npm install -g typescript后来查看一下版本tsc -v然后就出现了这个错误zsh: command not found: tsc在难过了一秒钟以后我配了一下环境变量,但是却并没有什么作用最后完美的解决方式是,我突然想起来我现在用的是mac本本,为毛要用npm呢?我可以用brew啊然后跑了这个命令brew install ty原创 2021-05-19 23:31:02 · 2621 阅读 · 0 评论 -
Uncaught TypeError: Cannot read property ‘dispatch‘ of undefined
一、背景描述用VUE的时候报这个错Uncaught TypeError: Cannot read property ‘dispatch’ of undefined二、问题分析1、我的代码是酱紫滴 data() { return { // 计时器 whole_timer: null } }, created() { this.isLoginOut(); }, isLoginOut() {原创 2021-05-10 13:57:27 · 3489 阅读 · 0 评论 -
Error: Cannot find module ‘mockjs‘
项目跑的好好的就找不到这个了重新跑npm install就好了~嘻嘻~原创 2021-04-15 15:16:24 · 3956 阅读 · 2 评论 -
记一次诡异的bug,The resource was preloaded using link preload but not used within a few seconds
一、问题描述做一个vue项目的时候,突然页面打不开了,空白页,什么都不显示报这个错The resource http://localhost:8082/js/index.js was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as value and it is preloade原创 2021-02-07 09:33:01 · 19272 阅读 · 3 评论 -
解决springboot引入JSONObject包报错
一、背景描述项目改框架,需要用到JSONObject,看了一下是要import net.sf.json.JSONObject;它来自这个jar包 <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.2.3<原创 2020-11-24 18:12:19 · 6854 阅读 · 1 评论 -
ELK系列之Mac安装kibana报错License information could not be obtained from Elasticsearch due to [invalid_inde
一、背景描述安装kibana,用brew install kibana命令安装的。二、安装过程及报错细节1、最开始我就是直接这个命令安装的,因为昨天就是上一话嘛的elasticsearch就是这样安装成功的brew install kibana安装过程中终端出现了这个错误Error: No such file or directory - /usr/local/Cellar/node/13.8.0我没管,先启动brew services start kibana终端也显示成功启动了,可原创 2020-11-03 18:30:41 · 5922 阅读 · 0 评论 -
VUEJS项目实践十之Uncaught ReferenceError: Vue is not defined external “Vue“?548a:1
一、问题背景:嫌弃vue打包文件太大了,几个页面竟达十几M,优化打包文件的时候,出现了这个问题Uncaught ReferenceError: Vue is not definedat eval (external “Vue”?548a:1)二、解决办法经过周密检查和验证,得出结论,引入文件的地方放错啦,放的太后面了错误的放置方式<!DOCTYPE html><html> <head> <meta charset="utf-8">原创 2020-09-28 17:01:00 · 4547 阅读 · 0 评论 -
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known serve
一、问题描述(1)背景:学习SpringCloud(2)我在干嘛:集群Eureka server.两个,一个客户端Eureka client(3)问题描述:SpringCloud Eureka客户端启动报错。com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server(4)问题分析:年纪大了,漏写了两个注解~就是加权限认证的时候 publ原创 2020-09-22 17:02:53 · 1183 阅读 · 0 评论 -
PgAdmin导入导出单表数据---解决PgAdmin导入单表数据报错乱码问题
问题背景:用PgAdmin导入导出单表的数据(新数据库已经建好,只是导入单表数据)。数据格式为csv旧数据库单表数据导入到新数据库单表中时,失败,报错都看不懂,是个乱码。这里失败,然后打开查看详情,就是这样的乱码报错,看都看不懂是什么问题,不过可以大胆猜测是plsql.exe有什么猫饼~看一下首选项这个二进制路径改成跟第三格一样的地址然后再导入一下,就成功啦!!!是不是很神奇~补充导入导出数据步骤,就非常的简单,首先你需要装一个PgAdmin,我用的是4,PgAdmin3也可以原创 2020-08-28 15:46:58 · 5038 阅读 · 1 评论 -
org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Cla
问题描述:写一个activemq的小栗子的时候,出现报错Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z分析问题:jar包冲突啦IDEA按住shift+shift看吧,这两个冲原创 2020-07-03 12:57:29 · 1657 阅读 · 0 评论 -
VUEJS项目实践七之Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of
问题描述:Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is not a child of this node.问题背景:在我之前的博文VUEJS项目实践五之Dialog弹出框MessageBox(超好看的bootstrap样式)中有介绍一个样式结合了Bootstrap样式的MesageBox然后在之...原创 2020-05-02 19:13:30 · 32304 阅读 · 0 评论 -
VUEJS项目实践六之No PostCSS Config found in
五一放假有时间啦,我又来更博啦~今天把之前写的vuejs项目从我的宝贝mac本本上copy到另外一台电脑上的时候,跑不起来。几次cnpm install了以后还是报这个错No PostCSS Config found in是之前引入的bootstrap文件那块报错。然后我去查了一下postcsspostcss官方文档然后对比了一下其他我跑的没问题的vuejs项目,发现我少了一个配置...原创 2020-05-02 16:47:26 · 687 阅读 · 0 评论 -
mac上安装npm-通过清华镜像安装Homebrew经验总结
一、终端输入brew -vbrew -v终端返回zsh: command not found: brew二、安装homeview,点击此处跳转到Homeview终端输入命令/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"后面就开始下...原创 2020-02-20 20:06:30 · 2135 阅读 · 0 评论 -
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoader
报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoader错误原因:jar包没导入检查D:\java\spring\project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\cxfTest\WEB-原创 2015-07-17 17:21:52 · 1407 阅读 · 0 评论 -
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.
客户端报错,看服务端,点图中按钮报另一个错误java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver在项目的lib下D:\java\spring\project\cxfTest\WebContent\WEB-INF\lib和tomcat的lib下D:\java\apache-to原创 2015-07-17 17:28:26 · 5510 阅读 · 0 评论 -
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/airline
问题描述:数据库驱动没有连上解决方案:1.连接数据库(注意URL格式)Connectionconn=DriverManager.getConnection("jdbc:mysql://localhost:3306/XXX","root","XXX")2.登记JDBC驱动对象String driverName= "com.mysql.jdbc.Driver";Class.fo原创 2015-05-05 15:49:14 · 9692 阅读 · 0 评论 -
Tomcat8.0不能重建
在eclipse中把之前的Tomcat 8删掉,重新配置一个,不料没有下一步。解决的方法如下:1.退出 eclipse2.到[工程目录下]/.metadata/.plugins/org.eclipse.core.runtime下3.把org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs转载 2015-07-17 17:33:40 · 1141 阅读 · 0 评论 -
eTerms3无法启动
今天我又发现了一件好神奇的事情,eterm打不开了,点击以后鼠标指针转啊转,就是打不开,但是任务管理器里面有这个进程。后来查了百度,把输入法默认改为美式键盘居然就可以了,我真是无语了,每次切换成搜狗好麻烦的说。原创 2015-07-27 10:23:24 · 3396 阅读 · 0 评论 -
Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish the connect
导入maven项目后,运行报错。问题描述: Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish the connection)数据库连接异常。网上说的IP啊、防火墙啊、cmd指令打开数据库监听啊对我根本没用。解决原创 2015-07-27 10:20:56 · 6041 阅读 · 0 评论 -
2003 - can‘t connect to mysql server on localhost 10061
昨天安装了个Mysql,准备在myeclipse中连接个数据库,今天启动的时候就不能运行了,显示10061网络连接错误,在本地服务里和cmd命令模式下也启动不了,全都显示同样的错误类型,试了网上的很多方法都不行,崩溃中终于找到了解决方案。 1.在mysql的安装目录D:\myeclipse\Mysql\path中找到my.ini文件,以记事本模式打开, 2.原创 2014-05-05 11:17:03 · 1618 阅读 · 0 评论 -
The processing instruction target matching "[xX][mM][lL]" is not allowed
The processing instruction target matching "[xX][mM][lL]" is not allowedxml文件不能被解析,一般出现这样的问题在于xml格式上,并且问题多出现在xml文件的头部。前面不要有任何其他字符,如空格、回车、换行这些否则就会出现上面的异常。原创 2014-08-06 08:54:15 · 2542 阅读 · 0 评论 -
Ubuntu不能上网
最近在虚拟机下装了个Ubuntu系统,一直不能上网,百度谷歌了好久找不到原因,瞎折腾半天甚至不惜重装了一遍Ubuntu,又重装了一遍虚拟机,都没用。最后终于发现原因如此简单,原来是没有打开本地服务。 联不上网的时候是酱紫滴:.解决方法:开始->运行->cmd,输入services.msc打开服务找到跟虚拟机联网相关的选项发现并未启动:原创 2014-04-29 09:41:03 · 1455 阅读 · 0 评论 -
Eclipse安卓开发导入工程后有红色的感叹号-解决方案
一、导入包后项目有个红色的感叹号原创 2014-07-07 22:17:30 · 1528 阅读 · 0 评论 -
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
问题描述:标签格式错误解决方法:改为: jaxws:endpoint id= "cxfService" implementor ="#inter" address= "/CxfService" > jaxws:inInterceptors> ref bean= "ipInIntercept" />原创 2015-07-23 09:42:00 · 2471 阅读 · 0 评论 -
cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content t
导入maven项目后报错,cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content type is element-only.在网上查阅了很多资料,大多是说项目导入后编码错误,将文件复制到word后改正一些特殊的字符,试过了根本没用。错误如下图,原创 2015-07-23 15:34:36 · 9933 阅读 · 0 评论 -
eclipse不能根据类自动加入import
最近在学习JavaFx,由于懒没有装插件,而是直接用了有相关包的maven库 出现了这样的问题,明明已经有JavaFx相关的包,但是就是没有import的提示 但是手动加入就可以, 而且,还有很多可疑的黄色警告线,很不正常!打开Application这个类看下,发现它在这个jar包里, 这说明依赖的jar包是有的,但是因为某种奇妙的原因,这里没有显示 中间探究的过程就不写...原创 2018-08-10 14:07:31 · 5564 阅读 · 2 评论 -
svn commit failed:is scheduled for addition
上一话已经说了一个svn错误啦,然后又遇到了一个,就是提交失败,commit的时候报了这个错 svn commit failed is scheduled for addition,but is missing.百度了下,这是因为之前用SVN提交过的文件,被标记为”add”状态,等待被加入到仓库。 若此时你把这个文件删除了,SVN提交的时候还是会尝试提交这个文件,虽然它的状态已经是 “miss原创 2017-11-15 09:11:47 · 1124 阅读 · 0 评论 -
subversion reported an error:The working copy at is too old(format 29) to work
这个问题是SVN提交别的公司拷贝过来的插件代码时,出现的问题。 问题描述: subversion reported an error The working copy at is too old(format 29) to work with client version ‘1.9.0(r1692801)’(expects format 31) 看问题描述是说我的SVN版本不对,太低,于是我原创 2017-11-15 09:04:48 · 9403 阅读 · 1 评论 -
At least one Instantiations product installed into this version of Eclipse was compiled
做插件开发的时候遇到了这个问题,百度竟然都找不到答案耶,难道都没有人遇到这个诡异的问题嘛!问题描述: 启动项目的时候突然报这个错了 过了一小会会,还会弹出这个框 Incorrect version product At least one Instantiations product installed into this version of Eclipse was compiled an原创 2017-11-07 16:24:58 · 1175 阅读 · 0 评论 -
log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment)
报错:log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).出错原因:缺少日志文件解决方案:在下图位置添加一个日志文件,文件内容为:文件内容:# Configure logging for testing: opti原创 2015-07-17 17:17:39 · 25733 阅读 · 9 评论