启动LWC地方发展。用户名:test-lgcvzacysqx3 3@example.com Api版本: 49.0
HPM代理创建:/ -> https://ability-customization-2906-dev-ed.my.salesforce.com HPM订阅http-代理事件:'proxyReq','error',‘关闭’cp:没有这样的文件或目录: /Users/admin/Desktop/suman/force-app/main/default/staticresources/* cp:没有这样的文件或目录: /Users/admin/Desktop/suman/force-app/main/default/contentassets/* LWR6003:侦听:3333Serverup on http://localhost:3333 LWR6000: Created "f5aff7264b“LWR6001: Writing /Users/admin/Desktop/suman/.localdevserver/webruntime/custom-component/f617504cf1/dev/en-GB/c/myfirstLwc.js.../Users/admin/Desktop/suman/.localdevserver/webruntime/custom-component/f617504cf1/dev/en-GB/c/myfirstLwc.js...:写LWR6001(/Users/admin/.local/share/sfdx/client/7.163.0-ea5a9c6/node_modules/@oclif/core/lib/errors/index.js:28:15) at /Users/admin/.local/share/sfdx/client/7.163.0-ea5a9c6/node_modules/@oclif/core/lib/cli-ux/index.js:25:66 at异步刷新(/Users/admin/.local/share/sfdx/client/7.163.0的Object.error超时-ea5a9c6/node_modules/@oclif/core/lib/cli-ux/index.js:121:9) { oclif:{ exit: 2 },代码:未定义} CLIError:在/Users/admin/.local/share/sfdx/client/7.163.0-ea5a9c6/node_modules/@oclif/core/lib/cli-ux/index.js:25:66的异步刷新(/Users/admin/.CLIError/share/sfdx/client/7)的Object.error上超时.163.0-ea5a9c6/node_modules/@oclif/core/lib/cli-ux/index.js:121:9) { oclif:{ exit: 2 },代码:未定义} LWR6004:服务器关机错误:在异步刷新(/ /Users/admin/.local/share/sfdx/client/7.163.0-ea5a9c6/node_modules/@oclif/core/lib/cli-ux/index.js:25:66 /admin/.LWR6004/共享/ Object.error )的Object.error上超时sfdx/client/7.163.0-ea5a9c6/node_modules/@oclif/core/lib/cli-ux/index.js:121:9) 10:01:49.554 sfdx力:闪电:lwc:开始以退出代码1结束
错误:本地开发服务器意外退出代码1。
发布于 2022-08-17 17:48:14
我今天也遇到了类似的错误
但是以某种方式使它使用以下解决方案运行
打开下面的路径
C:/Users/UserName/AppData/Local/sfdx/client/7.163.0-ea5a9c6/node_modules/@oclif/core/lib/cli-ux
并编辑异步刷新() index.js文件中的10000到600000方法。
await timeout(flush(), 600000);希望这能有所帮助。
找到一些here帮助的文章
https://stackoverflow.com/questions/73370492
复制相似问题