#Immich CLI doesn't work

1 messages · Page 1 of 1 (latest)

lofty citrusBOT
#

:wave: Hey @abstract lark,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: I have read applicable release notes.
  3. :blue_square: I have reviewed the FAQs for known issues.
  4. :blue_square: I have reviewed Github for known issues.
  5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :blue_square: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

worthy forum
#

What's your CLI version? Also is that the actual command you are running? immich login-key http://192.168.1.216:2283/api HFEJ38DNSDUEG

lofty citrusBOT
abstract lark
#

how do i check CLI version? I'm on the latest v1.99.0 on the web

#

not the actual command - I used my IP and API key

worthy forum
#

immich -V

abstract lark
abstract lark
#

$ immich -V
file:///usr/local/lib/node_modules/@immich/cli/dist/index.js:1269
enableOrNameAndArgs = enableOrNameAndArgs ?? "help [command]";
^

SyntaxError: Unexpected token '?'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
at async link (internal/modules/esm/module_job.js:42:21)

worthy forum
#

If you used npm maybe try uninstalling and re-installing

abstract lark
#

i installed just before trying to use it

#

sudo apt install nodejs npm

#

is this the correct cmd to install?

#

oh sorry

#

i actually used this

#

$ sudo npm i -g @lofty citrus/cli

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@immich/[email protected]',
npm WARN EBADENGINE required: { node: '>=20.0.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }

changed 2 packages, and audited 3 packages in 713ms

found 0 vulnerabilities

#

ah, is it my node.js?

worthy forum
#

Yes

#

Requires node 20

abstract lark
#

yes it work now, thank you so much!

lofty citrusBOT
abstract lark
#

not sure if i should have used a new post, or if I could continue with this one. I got an error when it was uploading