antvis / G6VP

G6VP is an online visual analysis tool for graphs and a low-code platform for building graph applications.
https://insight.antv.antgroup.com
Apache License 2.0
818 stars 111 forks source link

G6VP这个项目怎么进行私有化部署 #483

Closed YongFaGitHub closed 1 year ago

YongFaGitHub commented 1 year ago

G6VP这个项目怎么进行私有化部署,有没有教程怎么部署

pomelo-nwu commented 1 year ago
pnpm i 

cd G6VP/packages/gi-site

npm run build 

即可得到 G6VP 站点的静态文件

YongFaGitHub commented 1 year ago

系统是win10 node是v16.18.0 npm是@8.19.2 运行build命令报错 https://pic.imgdb.cn/item/64d0b9f61ddac507cc243e1e.png

pomelo-nwu commented 1 year ago

@YongFaGitHub 看起来像是 lock文件的问题,检查下是否是master最新代码

YongFaGitHub commented 1 year ago

代码已更新最新版本执行报错如下 `D:\work\g6vp2\G6VP\packages\gi-site>npm run build

@antv/gi-site@2.2.0 prebuild node scripts/link.mjs && node --experimental-json-modules scripts/pre-build.mjs

使用示例: pnpm run link [global name] node:internal/errors:478 ErrorCaptureStackTrace(err); ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@antv/gi-sdk' imported from D:\work\g6vp2\G6VP\packages\gi-site\scripts\pre-build.mjs at new NodeError (node:internal/errors:387:5) at packageResolve (node:internal/modules/esm/resolve:852:9) at moduleResolve (node:internal/modules/esm/resolve:901:20) at defaultResolve (node:internal/modules/esm/resolve:1115:11) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:837:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ModuleWrap. (node:internal/modules/esm/module_job:76:40) at link (node:internal/modules/esm/module_job:75:36) { code: 'ERR_MODULE_NOT_FOUND' } `

YongFaGitHub commented 1 year ago

使用Linux系统成功打包编译前端页面代码了,

pomelo-nwu commented 1 year ago

@YongFaGitHub 那应该就是 win 的环境问题。如果觉得 G6VP 对你的业务项目有帮助,还望点个star支持下