インストール(linux mint)
-
パッケージ postgresql-16,postgresql-16-apache-age,postgresql-16-pgvectorをインストール
-
Postgresql Post Installation
https://qiita.com/charon/items/c4862401b0198eeb5881 -
Apache Age Post Installation
Quick Start
apache age viewerのインストール(README.md参照)
- リポジトリをクローン
git clone https://github.com/apache/age-viewer.git
- Node version - ^14.16.0
https://nodejs.org/ja/download
v14の最新をインストール(バージョンを選ぶとコマンド例を提示してくれる)
- Node Module - pm2
npm i pm2
npm run setup
npm run start
- エラーになるので追加インストール
npm install --save-dev @babel/core @babel/node
※いらなかったかも
npm add @babel/runtime
npm install
まだ、エラーになる
src/components/cypherresult/presentations/CypherResultTable.jsx
Line 23:22: Unable to resolve path to module 'cytoscape/src/util' import/no-unresolved
Search for the keywords to learn more about each error.
Error: Not connected
at /home/ueki5/Workspaces/age-viewer/backend/src/controllers/databaseController.js:64:19
at /home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:52:18
at Generator.<anonymous> (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/regenerator.js:52:51)
at Generator.next (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/regeneratorDefine.js:11:21)
at asyncGeneratorStep (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)
at _next (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
at /home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7
at new Promise (<anonymous>)
at apply (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12)
at getMetadata (/home/ueki5/Workspaces/age-viewer/backend/src/controllers/databaseController.js:58:22)
info: ::ffff:127.0.0.1 - - [27/Jul/2025:01:01:35 +0000] "POST /api/v1/db/meta HTTP/1.1" 500 51
{"timestamp":"2025-07-27 10:01:35"}
Error: Not connected
at /home/ueki5/Workspaces/age-viewer/backend/src/controllers/databaseController.js:54:19
at /home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:52:18
at Generator.<anonymous> (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/regenerator.js:52:51)
at Generator.next (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/regeneratorDefine.js:11:21)
at asyncGeneratorStep (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)
at _next (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
at /home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7
at new Promise (<anonymous>)
at apply (/home/ueki5/Workspaces/age-viewer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12)
at getStatus (/home/ueki5/Workspaces/age-viewer/backend/src/controllers/databaseController.js:48:20)
info: ::ffff:127.0.0.1 - - [27/Jul/2025:01:01:35 +0000] "GET /api/v1/db HTTP/1.1" 500 51
{"timestamp":"2025-07-27 10:01:35"}
info: ::ffff:127.0.0.1 - - [27/Jul/2025:01:01:35 +0000] "GET /api/v1/miscellaneous HTTP/1.1" 304 -
{"timestamp":"2025-07-27 10:01:35"}
build front end ?
npm run build-front
ueki5@ueki5-PC:~/Workspaces/age-viewer$ npm run build-front
> ag-viewer@0.0.1 build-front /home/ueki5/Workspaces/age-viewer
> cd frontend && npm install && npm run build
npm WARN @types/react-dom@17.0.26 requires a peer of @types/react@^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.6.2 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.6.2 requires a peer of popper.js@^1.16.1 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-prettier@4.2.5 requires a peer of prettier@>=2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-android-arm64@2.5.1 (node_modules/@parcel/watcher-android-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-android-arm64@2.5.1: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-darwin-x64@2.5.1 (node_modules/@parcel/watcher-darwin-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-darwin-x64@2.5.1: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-freebsd-x64@2.5.1 (node_modules/@parcel/watcher-freebsd-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-freebsd-x64@2.5.1: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-darwin-arm64@2.5.1 (node_modules/@parcel/watcher-darwin-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-darwin-arm64@2.5.1: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-linux-arm-musl@2.5.1 (node_modules/@parcel/watcher-linux-arm-musl):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-linux-arm-musl@2.5.1: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-linux-arm-glibc@2.5.1 (node_modules/@parcel/watcher-linux-arm-glibc):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-linux-arm-glibc@2.5.1: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-linux-arm64-musl@2.5.1 (node_modules/@parcel/watcher-linux-arm64-musl):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-linux-arm64-musl@2.5.1: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-linux-arm64-glibc@2.5.1 (node_modules/@parcel/watcher-linux-arm64-glibc):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-linux-arm64-glibc@2.5.1: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-win32-arm64@2.5.1 (node_modules/@parcel/watcher-win32-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-win32-arm64@2.5.1: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-win32-ia32@2.5.1 (node_modules/@parcel/watcher-win32-ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-win32-ia32@2.5.1: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-win32-x64@2.5.1 (node_modules/@parcel/watcher-win32-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-win32-x64@2.5.1: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
audited 2245 packages in 4.27s
243 packages are looking for funding
run `npm fund` for details
found 100 vulnerabilities (6 low, 35 moderate, 55 high, 4 critical)
run `npm audit fix` to fix them, or `npm audit` for details
> ag-viewer-frontend@0.1.0 build /home/ueki5/Workspaces/age-viewer/frontend
> react-scripts build
Creating an optimized production build...
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Failed to compile.
src/components/cypherresult/presentations/CypherResultTable.jsx
Line 23:22: Unable to resolve path to module 'cytoscape/src/util' import/no-unresolved
Search for the keywords to learn more about each error.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ag-viewer-frontend@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ag-viewer-frontend@0.1.0 build 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! /home/ueki5/.npm/_logs/2025-07-27T01_11_45_326Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ag-viewer@0.0.1 build-front: `cd frontend && npm install && npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ag-viewer@0.0.1 build-front 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! /home/ueki5/.npm/_logs/2025-07-27T01_11_45_340Z-debug.log
~/.npm/_logs/2025-07-27T01_11_45_340Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/home/ueki5/.nvm/versions/node/v14.21.3/bin/node',
1 verbose cli '/home/ueki5/.nvm/versions/node/v14.21.3/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build-front'
1 verbose cli ]
2 info using npm@6.14.18
3 info using node@v14.21.3
4 verbose run-script [ 'prebuild-front', 'build-front', 'postbuild-front' ]
5 info lifecycle ag-viewer@0.0.1~prebuild-front: ag-viewer@0.0.1
6 info lifecycle ag-viewer@0.0.1~build-front: ag-viewer@0.0.1
7 verbose lifecycle ag-viewer@0.0.1~build-front: unsafe-perm in lifecycle true
8 verbose lifecycle ag-viewer@0.0.1~build-front: PATH: /home/ueki5/.nvm/versions/node/v14.21.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/ueki5/Workspaces/age-viewer/node_modules/.bin:/home/ueki5/.nvm/versions/node/v14.21.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle ag-viewer@0.0.1~build-front: CWD: /home/ueki5/Workspaces/age-viewer
10 silly lifecycle ag-viewer@0.0.1~build-front: Args: [ '-c', 'cd frontend && npm install && npm run build' ]
11 silly lifecycle ag-viewer@0.0.1~build-front: Returned: code: 1 signal: null
12 info lifecycle ag-viewer@0.0.1~build-front: Failed to exec build-front script
13 verbose stack Error: ag-viewer@0.0.1 build-front: `cd frontend && npm install && npm run build`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/home/ueki5/.nvm/versions/node/v14.21.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:400:28)
13 verbose stack at ChildProcess.<anonymous> (/home/ueki5/.nvm/versions/node/v14.21.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:400:28)
13 verbose stack at maybeClose (internal/child_process.js:1088:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
14 verbose pkgid ag-viewer@0.0.1
15 verbose cwd /home/ueki5/Workspaces/age-viewer
16 verbose Linux 6.8.0-64-generic
17 verbose argv "/home/ueki5/.nvm/versions/node/v14.21.3/bin/node" "/home/ueki5/.nvm/versions/node/v14.21.3/bin/npm" "run" "build-front"
18 verbose node v14.21.3
19 verbose npm v6.14.18
20 error code ELIFECYCLE
21 error errno 1
22 error ag-viewer@0.0.1 build-front: `cd frontend && npm install && npm run build`
22 error Exit status 1
23 error Failed at the ag-viewer@0.0.1 build-front script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
リトライ
nvm install 14.16.0でもNG!!