github install,启动命令如下, 不再是npm run start,dev 的端口是7003
$ npm install
$ npm run dev
报错:
[root@nebula-server-5 nebula-dashboard-1.0.1]# npm run dev
> nebula-graph-dashboard@1.0.1 dev /mnt/file/nebulaDashboard/nebula-dashboard-1.0.1
> egg-bin dev --port=7003 -r egg-ts-helper/register
[egg-ts-helper] create typings/app/controller/index.d.ts (1ms)
[egg-ts-helper] create typings/app/middleware/index.d.ts (1ms)
[egg-ts-helper] create typings/config/index.d.ts (13ms)
[egg-ts-helper] create typings/config/plugin.d.ts (3ms)
[egg-ts-helper] create typings/app/index.d.ts (0ms)
2021-09-06 16:18:48,396 INFO 10304 [master] node version v14.17.5
2021-09-06 16:18:48,397 INFO 10304 [master] egg version 2.29.4
Error: ENOSPC: System limit for number of file watchers reached, watch '/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/app/controller'
at FSWatcher.<computed> (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1582:34)
at createFsWatchInstance (/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/chokidar/lib/nodefs-handler.js:38:15)
at setFsWatchListener (/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/chokidar/lib/nodefs-handler.js:81:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/chokidar/lib/nodefs-handler.js:233:14)
at FSWatcher.NodeFsHandler._handleDir (/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/chokidar/lib/nodefs-handler.js:429:19)
at FSWatcher.<anonymous> (/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/chokidar/lib/nodefs-handler.js:477:19)
at FSWatcher.<anonymous> (/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/chokidar/lib/nodefs-handler.js:482:16)
at FSReqCallback.oncomplete (fs.js:193:5)
2021-09-06 16:18:48,427 ERROR 10304 [master] exit with code:1
Error: /mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/egg-bin/lib/start-cluster {"typescript":true,"port":7003,"tscompiler":"ts-node/register","workers":1,"baseDir":"/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1","framework":"/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/egg"} exit with code 1
at ChildProcess.<anonymous> (/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/common-bin/lib/helper.js:56:21)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
code: 1
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nebula-graph-dashboard@1.0.1 dev: `egg-bin dev --port=7003 -r egg-ts-helper/register`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nebula-graph-dashboard@1.0.1 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-09-06T08_18_48_462Z-debug.log
[root@nebula-server-5 nebula-dashboard-1.0.1]# 2021-09-06 16:18:49,204 ERROR 10326 [agent_worker] receive disconnect event on child_process fork mode, exiting with code:110
2021-09-06 16:18:49,205 WARN 10326 [egg-view-assets] dev server will be killed
2021-09-06 16:18:49,210 ERROR 10326 nodejs.ENOSPCError: ENOSPC: System limit for number of file watchers reached, watch '/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/app'
at FSWatcher.<computed> (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1582:34)
at Walk.<anonymous> (/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/wt/index.js:183:20)
at Walk.emit (events.js:400:28)
at /mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/ndir/lib/ndir.js:107:16
at FSReqCallback.oncomplete (fs.js:193:5)
errno: -28
syscall: "watch"
code: "ENOSPC"
path: "/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/app"
filename: "/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/app"
dir: "/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/app"
name: "ENOSPCError"
pid: 10326
hostname: nebula-server-5
2021-09-06 16:18:49,211 ERROR 10326 nodejs.ENOSPCError: ENOSPC: System limit for number of file watchers reached, watch '/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/config'
at FSWatcher.<computed> (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1582:34)
at Walk.<anonymous> (/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/wt/index.js:183:20)
at Walk.emit (events.js:400:28)
at /mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/node_modules/ndir/lib/ndir.js:107:16
at FSReqCallback.oncomplete (fs.js:193:5)
errno: -28
syscall: "watch"
code: "ENOSPC"
path: "/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/config"
filename: "/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/config"
dir: "/mnt/file/nebulaDashboard/nebula-dashboard-1.0.1/config"
name: "ENOSPCError"
pid: 10326
hostname: nebula-server-5
2021-09-06 16:18:49,213 ERROR 10326 [agent_worker] exit with code:110