Cannot install with Node 16 (upath)
AndersDJohnson opened this issue Β· comments
yarn global add yalc
yarn global v1.22.10
[1/4] π Resolving packages...
[2/4] π Fetching packages...
error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "16.3.0"
error Found incompatible module.
Seems like this was fixed in upath
at some point: anodynos/upath@8c5f4e1#comments
Is this out of sync in the transitive dependency chain?
Workaround for now:
yarn global add yalc --ignore-engines
Working ok for me without --ignore-engines
$ node --version
v16.18.0
But I came here because I couldn't install, but since found that I had to add sudo
before commands
sudo yarn global add yalc
#from upstream project
sudo yalc publish
# from consuming project
sudo yalc add "@upstream/package"
seems a bit overkill and using sudo is a bit iffy π’ but it appears to be working...
Interested to hear what I'm doing wrong
EDIT: sudo is a horrible idea. Package doesn't get updated properly.
EDIT2: This solved my issue with the install