篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yarn run serve报错Error: Cannot find module ‘@vue/cli-plugin-babel‘ 的解决办法相关的知识,希望对你有一定的参考价值。
问题概述
关于这个问题,是在构建前端工程的时候遇到的,项目构建完成后,“yarn run serve”启动项目时,出现的问题:“ Error: Cannot find module ‘@vue/cli-plugin-babel‘ ”
如下图:
具体信息如下:
yarn run v1.22.19
$ vue-cli-service serve
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module '@vue/cli-plugin-babel'
Require stack:
- C:\\Users\\Jackson\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli-service\\lib\\Service.js
- C:\\Users\\Jackson\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli-service\\bin\\vue-cli-service.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at idToPlugin (C:\\Users\\Jackson\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli-service\\lib\\Service.js:172:14)
at C:\\Users\\Jackson\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli-service\\lib\\Service.js:211:20
at Array.map (<anonymous>)
at Service.resolvePlugins (C:\\Users\\Jackson\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli-service\\lib\\Service.js:198:10)
at new Service (C:\\Users\\Jackson\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli-service\\lib\\Service.js:35:25)
at Object.<anonymous> (C:\\Users\\Jackson\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli-service\\bin\\vue-cli-service.js:15:17)
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\\\Users\\\\Jackson\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\@vue\\\\cli-service\\\\lib\\\\Service.js',
'C:\\\\Users\\\\Jackson\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\@vue\\\\cli-service\\\\bin\\\\vue-cli-service.js'
]
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
zabbix报错listener failed: zbx_tcp_listen() fatal error: unable to serve on any address
I‘m trying to install zabbix on a new (virtual) server. But i have troubles with the zabbix_agentd on the zabbix server. I get the error below and don‘t know how to fix it... Can someone help me out or point me in the correct direction?
Error logging zabbix_agentd (on zabbix server): 16795:20130325:144550.564 Starting Zabbix Agent [server-adres]. Zabbix 2.0.3 (revision 30485). 16795:20130325:144550.580 listener failed: zbx_tcp_listen() fatal error: unable to serve on any address [[-]:10050]
configuration zabbix_agentd on the zabbix server:
PidFile=/var/run/zabbix/zabbix_agentd.pid LogFile=/var/log/zabbix/zabbix_agentd.log DebugLevel=4 # for now Server=127.0.0.1 ServerActive=127.0.0.1 Hostname=server-adress also tried ip adress, same error
with command netstat: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 31428/./zabbix_agen tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 5690/./zabbix_serve
以上是关于yarn run serve报错Error: Cannot find module ‘@vue/cli-plugin-babel‘ 的解决办法的主要内容,如果未能解决你的问题,请参考以下文章