yarn run serve报错Error: Cannot find module ‘@vue/cli-plugin-babel‘ 的解决办法

Posted Hello_World_QWP

tags:

篇首语:本文由小常识网(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.

解决办法 

根据错误信息提示,在本地环境中没有找到组件“ @vue/cli-plugin-babel ” ,

直接在本地安装即可,输入指令:npm install -g @vue/cli-plugin-babel@5.0.8 

待组件安装完成后,即可成功启动项目工程了!!!


好了,关于 yarn run serve报错Error: Cannot find module ‘@vue/cli-plugin-babel‘ 的解决办法  就写到这儿了,如果还有什么疑问或遇到什么问题欢迎扫码提问,也可以给我留言哦,我会一一详细的解答的。 
歇后语:“ 共同学习,共同进步 ”,也希望大家多多关注CSND的IT社区。


作       者:华    仔
联系作者:who.seek.me@java98k.vip
来        源:CSDN (Chinese Software Developer Network)
原        文:https://blog.csdn.net/Hello_World_QWP/article/details/127006367
版权声明:本文为博主原创文章,请在转载时务必注明博文出处!

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‘ 的解决办法的主要内容,如果未能解决你的问题,请参考以下文章

Vuenpm run serve时Error:0308010C:digital envelope routines::unsupported

Vuenpm run serve时Error:0308010C:digital envelope routines::unsupported

npm run serve 运行报错 Cannot read property ‘prefix_exceptions‘ of undefined 需要先清除缓存数据

pip安装(install)任何package(扩展库)都报错status = self.run(options, args)...check_hostname requires serve的解决方法

npm run dev/build/serve

报错:An error occurred at line: 22 in the generated java file The method getJspApplicationContext(Serv