The engine "node" is incompatible with this module. Expected version ">=16". Got "14.18.1"
tuantv413 opened this issue · comments
Ah ">= 16" is intended for developing this package. I don't think the users need this. Did you enable the npm engine-strict
config?
Ah ">= 16" is intended for developing this package. I don't think the users need this. Did you enable the npm
engine-strict
config?
@xiaody no, I didn't enable it.
should I enable npm engine-strict
?
Just leave it as default (false).
I've noticed that you are using yarn instead of npm. yarn is by default stricter about engines
. It gives you errors unlike npm's warns. You can use the --ignore-engines
flag or yarn config set ignore-engines true
config.
@xiaody It seems that package.json
’s engines
also applies to the consumers of the package, not just developers of the project.
If you want to let users consume this package from Node.js ≤ 16 without compatibility warnings/errors, I suggest removing "engines"
from package.json
. (It is possible to keep it in the repo and temporarily remove the "engines"
field just before running npm publish
.)
@dtinth @tuantv413 You are right. react-lines-ellipsis@0.15.3
is released without engines
field.