Hi,
I cannot compile this package. I am using a clean chroot with extra-x86_64-build -c
to build.
At first I get:
[...]
node_modules/puppeteer postinstall: Done
node_modules/postman-code-generators postinstall: Detected package manager: npm
node_modules/postman-code-generators postinstall: node:internal/child_process:285
node_modules/postman-code-generators postinstall: const err = new ErrnoException(exitCode, syscall);
node_modules/postman-code-generators postinstall: ^
node_modules/postman-code-generators postinstall: Error: Command failed with ENOENT: npm --version
node_modules/postman-code-generators postinstall: spawn npm ENOENT
node_modules/postman-code-generators postinstall: at ChildProcess._handle.onexit (node:internal/child_process:285:19)
node_modules/postman-code-generators postinstall: at onErrorNT (node:internal/child_process:483:16)
node_modules/postman-code-generators postinstall: at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
node_modules/postman-code-generators postinstall: errno: -2,
node_modules/postman-code-generators postinstall: code: 'ENOENT',
node_modules/postman-code-generators postinstall: syscall: 'spawn npm',
node_modules/postman-code-generators postinstall: path: 'npm',
[...]
Seems like npm
is expected but not installed. So I added "npm"
in the dependency list of the PKGBUILD. This time it was running further, but in the end I still got an error:
422kB ../../db_migrations/index.js
2028kB ../../db_migrations/build/Release/better_sqlite3.node
4072kB [14877ms] - ncc 0.38.3
▲ Next.js 14.2.25
Creating an optimized production build ...
> [PWA] Compile server
> [PWA] Compile server
> [PWA] Compile client (static)
> [PWA] Auto register service worker with: /build/karakeep/src/karakeep/node_modules/next-pwa/register.js
> [PWA] Service worker: /build/karakeep/src/karakeep/apps/web/public/sw.js
> [PWA] url: /sw.js
> [PWA] scope: /
Failed to compile.
../../node_modules/parse5/dist/serializer/index.js
Module not found: Package path ./lib/escape.js is not exported from package /build/karakeep/src/karakeep/node_modules/parse5/node_modules/entities (see exports field in /build/karakeep/src/karakeep/node_modules/parse5/node_modules/entities/package.json)
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
../../node_modules/parse5/dist/index.js
../../node_modules/parse5-parser-stream/dist/index.js
./node_modules/cheerio/dist/esm/index.js
./lib/importBookmarkParser.ts
./components/settings/ImportExport.tsx
../../node_modules/parse5/dist/tokenizer/index.js
Module not found: Package path ./lib/decode.js is not exported from package /build/karakeep/src/karakeep/node_modules/parse5/node_modules/entities (see exports field in /build/karakeep/src/karakeep/node_modules/parse5/node_modules/entities/package.json)
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
../../node_modules/parse5/dist/index.js
../../node_modules/parse5-parser-stream/dist/index.js
./node_modules/cheerio/dist/esm/index.js
./lib/importBookmarkParser.ts
./components/settings/ImportExport.tsx
> Build failed because of webpack errors
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/chalix/build
I am struggeling to understand where the problem is. Is it a problem with Karakeep or with this PKGBUILD? I also had the same issue with the previous version v24.1 using this PKGBUILD.
Pinned Comments
evine commented on 2025-04-06 06:45 (UTC) (edited on 2025-04-07 14:02 (UTC) by evine)
Hoarder has been renamed to Karakeep. The PKGBUILD has been fully updated to replace all references to hoarder with karakeep (note: hoarder-cli remains named hoarder-cli).
If you want to preserve your existing Hoarder data during the upgrade, please follow the steps below:
1. Stop the old services:
2. Uninstall Hoarder
(After uninstalling, you can manually remove the old
hoarder
user and group if needed.)3. Rename the old data directory:
4. Install Karakeep:
5. Fix ownership of the data directory:
6. Set Karakeep: Edit
/etc/karakeep/karakeep.env
7. Start Karakeep: