question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use @crowdin/cli from NPM when running on a M1 computer

See original GitHub issue

Describe the bug It’s not possible to use the Crowdin CLI from NPM on M1 computers because jdeploy isn’t able to install the appropriate Java runtime for the architecture.

To Reproduce Steps to reproduce the behavior:

  1. On an Apple M1 computer
  2. Execute CLI command: npx @crowdin/cli
  3. See an error
Need to install the following packages:
  @crowdin/cli
Ok to proceed? (y) y
Installing/Updating JRE in /Users/josh/.jdeploy...
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated node-jre@0.2.3: discontinued
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /Users/josh/.jdeploy/node_modules/node-jre
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! unsupported architecture: arm64

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/josh/.npm/_logs/2022-01-16T21_44_06_851Z-debug-0.log
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.

Expected behavior The crowdin CLI binary to successfully install the JRE runtime for Apple M1 computers and then be successfully able to be used.

Environment:

  • OS: macOS
  • Version 12.1 (21C52)

Screenshots N/A

Additional context It appears that the CLI uses jdeploy to install the appropriate JRE runtime. I’ve sent a patch to jdeploy to handle this architecture: https://github.com/shannah/jdeploy/pull/21, however it appears that crowdin currently uses an old version of jdeploy so I’m not sure how easy it is to upgrade to the current one (or a fork with this patch applied)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
josh-commented, Jan 26, 2022

Amazing! Thanks so much for the quick resolution @andrii-bodnar and for your help @shannah 🙌

1reaction
andrii-bodnarcommented, Jan 25, 2022

Hi @josh-,

Fixed, will be available in the next version of CLI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Console Client (CLI) | Crowdin Developer Portal
Crowdin CLI is a command line tool that allows you to manage and synchronize your localization resources with your Crowdin project:
Read more >
@crowdin/cli - npm
Crowdin CLI is a command line tool that allows you to manage and synchronize your localization resources with your Crowdin project.
Read more >
Issues · crowdin/crowdin-cli - GitHub
Crowdin CLI fails to install when using OpenJDK. Bug Help wanted Windows Probably is Windows-related only. #507 opened 19 days ago by vxern....
Read more >
Having trouble installing npm on mac M1 - node.js
We're using Nodejs v16.13.1. After running arch -x86_64 zsh the npm install still failed ( Error: Cannot find module ...
Read more >
An app for M1 Macs that plays the sound of a fan as CPU ...
You can't access it directly from within the app. ... If you're looking for a PC that's not a headache to put together,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found