© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•3y ago•
6 replies
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)
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Default Library (CLI import) vs New External library
ImmichIImmich / help-desk-support
3y ago
External library: New folders not included/scanned
ImmichIImmich / help-desk-support
13mo ago
CLI import
ImmichIImmich / help-desk-support
3y ago
CLI Import error
ImmichIImmich / help-desk-support
3y ago