JEPaaS 社区

 找回密码
 立即注册
JEPaaS低代码平台-官网
查看: 2594|回复: 0

开源项目启动常见问题解决方法

[复制链接]

54

主题

77

帖子

354

积分

管理员

JEPaaS专家

Rank: 9Rank: 9Rank: 9

积分
354
发表于 2021-10-12 11:13:28 | 显示全部楼层 |阅读模式
1: 项目启动后,使用本地后台地址,H5 访问时,报静态资源找不到的错误



解决方法:
在dev.js 中添加访问本地服务的路由
  1. const routers = [
  2.   { router: '/rbac', folder: 'RBAC', proxy: proxyServerUrl }, // 登录rbac
  3.   { router: '/je', folder: 'SERVER', proxy: serverUrl }, // 数据请求
  4.   { router: '/app', folder: '本地插件调试', proxy: '/' }, // 数据请求
  5.   { router: '/appPlugin', folder: '线上资源调试',proxy: proxyServerUrl }, // 数据请求
  6.   { router: '/dev', folder: 'H5环境服务代理', proxy: proxyServerUrl }, // 数据请求
  7.   { router: '', folder: '线上应用', proxy: `${serverUrl}` }, // 数据请求
  8. ];
复制代码

2:APP 插件打包时,报Error: listen EACCES: permission denied 127.0.0.1:8080
  1. Error: listen EACCES: permission denied 127.0.0.1:8080
  2.     at Server.setupListenHandle [as _listen2] (net.js:1260:19)
  3.     at listenInCluster (net.js:1325:12)
  4.     at doListen (net.js:1458:7)
  5.     at process._tickCallback (internal/process/next_tick.js:63:19)
  6. Emitted 'error' event at:
  7.     at emitErrorNT (net.js:1304:8)
  8.     at process._tickCallback (internal/process/next_tick.js:63:19)
  9. npm ERR! code ELIFECYCLE
  10. npm ERR! errno 1
  11. npm ERR! suanbanyun@1.0.0 build: `cross-env NODE_ENV=production NODE_ITEM=APP PRODUCT_CONFIG=suanbanyun-dev node config-app/webpack/webpack.js`
  12. npm ERR! Exit status 1
  13. npm ERR!
  14. npm ERR! Failed at the suanbanyun@1.0.0 build script.
  15. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

  16. npm ERR! A complete log of this run can be found in:
  17. npm ERR!     C:\Users\surface\AppData\Roaming\npm-cache\_logs\2021-10-12T02_18_25_328Z-debug.log

复制代码

解决方法:
127.0.0.1:8080  这个地址服务停掉之后在进行打包





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|JEPaaS 低代码平台社区 ( 京ICP备18023569号 )

GMT+8, 2024-5-21 03:16 , Processed in 0.109487 second(s), 20 queries .

Powered by 北京凯特伟业科技有限公司

Copyright © 2001-2021, JEPaaS.COM

快速回复 返回顶部 返回列表