Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue - MacOS Sonoma - npm warn deprecated @[email protected] #566

Open
4 tasks done
ioapan opened this issue Sep 9, 2024 · 3 comments
Open
4 tasks done
Labels
class(bug) Something isn't working status(open) A new issue - not yet classified

Comments

@ioapan
Copy link

ioapan commented Sep 9, 2024

Describe the issue

During installation on MacOS Sonoma with the current NodeJS version, I am getting the following:

iMac@iMac ~ % sudo npm install -g icloud-photos-sync
npm warn deprecated @backtrace-labs/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated @backtrace-labs/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

Then, when I run the icloud-photos-sync, I getting the following error:

file:///usr/local/lib/node_modules/icloud-photos-sync/bin/lib/resources/main.js:2
import PackageData from '../../../package.json' assert { type: 'json' }; // eslint-disable-line
^^^^^^

SyntaxError: Unexpected identifier 'assert'
at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)
at callTranslator (node:internal/modules/esm/loader:436:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)

How to reproduce the behavior?

No response

Error Code

SyntaxError: Unexpected identifier 'assert'

Relevant log output

I can't find .icloud-photos-sync.log.

These are the error messages that I get:

file:///usr/local/lib/node_modules/icloud-photos-sync/bin/lib/resources/main.js:2
import PackageData from '../../../package.json' assert { type: 'json' }; // eslint-disable-line
                                                ^^^^^^

SyntaxError: Unexpected identifier 'assert'
    at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)
    at callTranslator (node:internal/modules/esm/loader:436:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)

Operating system

macOS Sonoma

Execution environment

Node.js v22.8.0

icloud-photos-sync version

latest

Checklist

@ioapan ioapan added class(bug) Something isn't working status(open) A new issue - not yet classified labels Sep 9, 2024
@steilerDev
Copy link
Owner

Seems I need to update the backtrace dependency - thanks for the catch.

On the error: I'm using node 18 - and I think the assert statements are an experimental feature of those. Can you try using node 18 to see if this resolves the issue?

@ioapan
Copy link
Author

ioapan commented Sep 9, 2024

You're welcome.

I've just ran it with Node 18:

imac@imac ~ % sudo npm install -g icloud-photos-sync
Password:
npm warn deprecated @backtrace-labs/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated @backtrace-labs/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 116 packages in 4s

Then i tried to run it but I'm getting this:

zsh: permission denied: icloud-photos-sync

@vjoomens
Copy link

Please update libraries, same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class(bug) Something isn't working status(open) A new issue - not yet classified
Projects
None yet
Development

No branches or pull requests

3 participants