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 fails on Arch Linux with Node v9.10.1 #23

Closed
Nicd opened this issue Apr 2, 2018 · 10 comments
Closed

Installation fails on Arch Linux with Node v9.10.1 #23

Nicd opened this issue Apr 2, 2018 · 10 comments

Comments

@Nicd
Copy link

Nicd commented Apr 2, 2018

[codestats@octane assets]$ node -v
v9.10.1
[codestats@octane assets]$ npm -v
5.7.1
[codestats@octane assets]$ npm install full-icu

> [email protected] postinstall /var/codestats/beta/assets/node_modules/full-icu
> node postinstall.js

Note: Your node was compiled to link against an externally-provided ICU, so the locale data is not customizable through this script. Exitting.
npm install icu4c-data@61l (Node 9.10.1 and small-icu 61.1) -> icudt61l.dat
full-icu$ /usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js install icu4c-data@61l
npm ERR! code ETARGET
npm ERR! notarget No matching version found for icu4c-data@61l
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

full-icu is a dependency of a dependency so I can't avoid it, and my program has stopped building. It seems version 61l is not pushed to NPM, who handles that? The postinstall script also does not follow the version specified in package-lock.json, which would have existed in NPM.

@srl295
Copy link
Member

srl295 commented Apr 20, 2018

@Nicd try again. 61l is there.

@Nicd
Copy link
Author

Nicd commented Apr 20, 2018

Seems to be working now with a cursory look.

@srl295
Copy link
Member

srl295 commented Apr 20, 2018

reopen if not.

By the way, you filed this 13 hours before I landed 61 in node master. nodejs/node#19621 (comment) So you must have explicitly built icu 61?

@srl295 srl295 closed this as completed Apr 20, 2018
@Nicd
Copy link
Author

Nicd commented Apr 20, 2018

I'm unsure how it ended up like that. I didn't build anything myself, full-icu was a dependency of a dependency (Luxon). That version of Node and NPM were installed from Arch Linux official repos.

@srl295
Copy link
Member

srl295 commented Apr 20, 2018 via email

@Nicd
Copy link
Author

Nicd commented Apr 21, 2018

Do you mean the versions in the original post? Node was 9.10.1, NPM 5.7.1 and full-icu 1.2.1 that resulted in it trying to install icu4c-data@61l. Or do you mean something else?

@srl295
Copy link
Member

srl295 commented Apr 21, 2018

@Nicd what version of the Arch linux node package? In other words, how did you get ICU 61 13 hours before it was available to Node master, much less any released version? (There are lots of ways, just curious)

@Nicd
Copy link
Author

Nicd commented Apr 21, 2018

It's community/nodejs, but I have since upgraded it and not sure what the exact package version was, only that it resulted in Node 9.10.1 being installed. Here's the package's history if it helps: https://git.archlinux.org/svntogit/community.git/log/trunk?h=packages/nodejs

@fzaninotto
Copy link

This bug just bit me today, using node 10:

$ npm install full-icu

> [email protected] postinstall /Users/francois/tmp/node_modules/full-icu
> node postinstall.js

Note: Your node was compiled to link against an externally-provided ICU, so the locale data is not customizable through this script. Exitting.
npm install icu4c-data@62l (Node 10.5.0 and small-icu 62.1) -> icudt62l.dat
full-icu$ /usr/local/Cellar/node/10.5.0_1/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install icu4c-data@62l

@srl295
Copy link
Member

srl295 commented Jun 27, 2018

@fzaninotto it's not a bug, it means i haven't built the 62l files yet, sorry. Opened: nodejs/icu4c-data-npm#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants