Closed gvelim closed 2 weeks ago
I think I reduced it down to 'npx' failing to run.. I have node18, npm-node18 installed
# cd ~/photoprism-freebsd-port/work/photoprism-240915-e1280b2fb/frontend
# npx
npm error Class extends value undefined is not a constructor or null
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-10-26T09_57_35_767Z-debug-0.log
# cat /root/.npm/_logs/2024-10-26T09_57_35_767Z-debug-0.log
0 verbose cli /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js
1 info using npm@10.9.0
2 info using node@v18.20.4
3 silly config load:file:/usr/local/lib/node_modules/npm/npmrc
4 silly config load:file:/root/photoprism-freebsd-port/work/photoprism-240915-e1280b2fb/frontend/.npmrc
5 silly config load:file:/root/.npmrc
6 silly config load:file:/usr/local/etc/npmrc
7 verbose title npm exec
8 verbose argv "exec"
9 verbose logfile logs-max:10 dir:/root/.npm/_logs/2024-10-26T09_57_35_767Z-
10 verbose logfile /root/.npm/_logs/2024-10-26T09_57_35_767Z-debug-0.log
11 silly logfile start cleaning logs, removing 3 files
12 verbose stack TypeError: Class extends value undefined is not a constructor or null
12 verbose stack at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/minipass-collect/index.js:4:23)
12 verbose stack at Module._compile (node:internal/modules/cjs/loader:1364:14)
12 verbose stack at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
12 verbose stack at Module.load (node:internal/modules/cjs/loader:1203:32)
12 verbose stack at Module._load (node:internal/modules/cjs/loader:1019:12)
12 verbose stack at Module.require (node:internal/modules/cjs/loader:1231:19)
12 verbose stack at require (node:internal/modules/helpers:177:18)
12 verbose stack at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/cacache/lib/get.js:3:17)
12 verbose stack at Module._compile (node:internal/modules/cjs/loader:1364:14)
12 verbose stack at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
13 error Class extends value undefined is not a constructor or null
14 verbose cwd /root/photoprism-freebsd-port/work/photoprism-240915-e1280b2fb/frontend
15 verbose os FreeBSD 13.3-RELEASE-p4
16 verbose node v18.20.4
17 verbose npm v10.9.0
18 verbose exit 1
19 verbose code 1
20 error A complete log of this run can be found in: /root/.npm/_logs/2024-10-26T09_57_35_767Z-debug-0.log
That has fixed it !
# pkg remove npm-node18 node18
# rm -R /usr/local/lib/node_modules
# rm -R .npm
# pkg install npm-node18 node18
Any ideas on how to overcome the below error during build ?