Closed dfrankland closed 5 years ago
latest yarn seems to solve it for me
True, it does seem to work no problem with yarn
. I can't quite ask everyone at work to change to it though 😅
@dfrankland i will take a look at this.
Here's a full reproduction showing this PR works to fix the problem described: https://github.com/dfrankland/full-icu-npm-npmrc-repro
.npmrc
files are used to configurenpm
and can be set on a per-project basis: https://docs.npmjs.com/files/npmrc#per-project-config-fileOn install,
npm
sets theINIT_CWD
process variable to the original directory that rannpm install
: https://docs.npmjs.com/cli/run-script~Using
INIT_CWD
we can run the post install step in the correct directory.~ Installing theicu4c-data
inINIT_CWD
doesn't work since the path isn't relative tofull-icu
during install. Instead we link to the.npmrc
locally during install and everything works out.This is very useful for when folks use private registries.