I
Immich2y ago
pjnd98

New install - import of external folders failing in CLI

I just installed immich in docker and I'm trying to run the CLI import to where my photos live and the command itself is failing before even getting to the photo location. I'm sure this is just something dumb on my part but I've spun my wheels for quite a while to no avail!
immich upload --key b11111HwXoa1tF5KqqgXA3yG9vT95ygANk3I22222g --server http://192.168.50.4:2283/api /mnt/photos/testPic1.jpg --import
immich upload --key b11111HwXoa1tF5KqqgXA3yG9vT95ygANk3I22222g --server http://192.168.50.4:2283/api /mnt/photos/testPic1.jpg --import
and I get an immediate error
/usr/local/lib/node_modules/immich/node_modules/systeminformation/lib/filesystem.js:145
osMounts[line.split(' ')[0]] = osMounts[line.split(' ')[0]] ?? false;
^

SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/usr/local/lib/node_modules/immich/node_modules/systeminformation/lib/index.js:32:20)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
/usr/local/lib/node_modules/immich/node_modules/systeminformation/lib/filesystem.js:145
osMounts[line.split(' ')[0]] = osMounts[line.split(' ')[0]] ?? false;
^

SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/usr/local/lib/node_modules/immich/node_modules/systeminformation/lib/index.js:32:20)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
4 Replies
etnoy
etnoy2y ago
What os?
pjnd98
pjnd98OP2y ago
Linux
bo0tzz
bo0tzz2y ago
What version of nodejs are you using? node -v Immich needs at least 18
pjnd98
pjnd98OP2y ago
that is likely the problem; I checked that earlier and it was lower. I will upgrade and see if that fixes it. Thanks! that fixed it; thanks @bo0tzz!

Did you find this page helpful?