Closed michelbl closed 3 years ago
error @size-limit/file@5.0.1: The engine "node" is incompatible with this module. Expected version "^12.0.0 || ^14.0.0 || >=16.0.0". Got "15.14.0"
Thanks @hegelstad! Could you please explain how you found the error message? Then I plan to close the issue.
I am running Macbook Pro M1, I have installed node via brew with apple silicon architecture, when installing tsdx for the first time, I was running node version 15.14.0, which gave me the above error upon running the quick start guide: npx tsdx create mylib
.
When I upgraded node by running brew upgrade, everything worked as expected. It seems like node version 16 >= is a hard requirement for the size-limit package.
Current Behavior
Trying to create a basic package, I get an error:
However, the command
npm install @size-limit/preset-small-lib husky size-limit tsdx tslib typescript --save-dev
runs without trouble.Expected behavior
Either the installation succeeds, or a error message gives information about the cause of the error.
Suggested solution(s)
Make the error message more informative.
Additional context
Your environment