browserslist / update-db

CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
https://browsersl.ist/
MIT License
286 stars 57 forks source link

npm version check #30

Closed romanlex closed 3 months ago

romanlex commented 3 months ago

Why do you check npm version? I don't see any engines directory in the package.json with restrictions on node version or npm version.

Example, node 14 + npm 6 If I remove check-npm-version.js all work perfectly

ai commented 3 months ago

I have it for ESLint to know what Node.js features to check (it will show an error if I use feature from Node.js 16).

romanlex commented 3 months ago

If you use features from node 14+ maybe you set engines directory in package.json?

ai commented 3 months ago

Oops, sorry I missed the open source project (too many). Here we do not have engines because it was used by Browserslist with Node.js ≥ 6 support.

Here is that issue with npm 6 why we decided to stop supporting it https://github.com/browserslist/update-db/issues/1