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.

[Bug] full-icu is not supported

See original GitHub issue
  • I’d be willing to implement a fix

Describe the bug

Yarn fails when I try to install full-icu. I am aware it’s builin in node v13 but my team would prefer to not install unstable node version.

To Reproduce

try {
  await yarn(`add`, `full-icu`, '--dev');
  expect(true).toBe(false);
} catch (error) {
  expect(error.toString()).not.toContain('Failed with errors');
}

Screenshots

image

Environment if relevant (please complete the following information):

  • OS: OSX
  • Node version 12.10.0
  • Yarn version 2.0.0-rc.28

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
arcaniscommented, Feb 26, 2020

I can’t check right now, but it seems like their postinstall script is somehow calling node /path/to/yarn add ..., which doesn’t work because it’s a shellscript. Why not call yarn add ...?

/var/folders/93/vjl05hsx4_vdnhvdtky_qx8m0000gn/T/tmp-30272oO0OXy5mgl56/node /var/folders/93/vjl05hsx4_vdnhvdtky_qx8m0000gn/T/tmp-30272oO0OXy5mgl56/yarn add icu4c-data@64l --no-lockfile --ignore-scripts

(Although even with that, running yarn add while an install is already in progress is completely invalid as it would likely lead to dependency tree corruptions)

1reaction
yarnbotcommented, Feb 1, 2020

We couldn’t reproduce your issue (all the assertions passed on master).

Read more comments on GitHub >

github_iconTop Results From Across the Web

2007464 – `npm install full-icu` fails with packaged nodejs
Description of problem: I ran into a problem building a project which has a javascript dependency on `icu`. The following command succeeds on...
Read more >
full-icu - npm
install 'full-icu' data for your current node. Latest version: 1.5.0, last published: 4 months ago. Start using full-icu in your project by ...
Read more >
node: could not initialize ICU (check NODE_ICU_DATA or ...
I updated the full-icu version as well. the $NODE_ICU_DATA is set to /usr/lib/node_modules/full-icu. but still get this error
Read more >
Building Node.js with full-icu on Raspbian - Google Groups
Hello, I need to provide support for ISO-8859-9 (win-1254) in my application. So instead of default implementation of small-icu, I'm installing my
Read more >
Errors | Node.js v19.3.0 Documentation
Node.js supports several mechanisms for propagating and handling errors that ... If that first argument is not null and is an instance of...
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