ai / nanoid

A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript
https://zelark.github.io/nano-id-cc/
MIT License
24.33k stars 788 forks source link

Cannot be installed with node 12 #417

Closed kajweb closed 1 year ago

kajweb commented 1 year ago

nanoid@4.0.1: The engine "node" is incompatible with this module. Expected version "^14 || ^16 || >=18". Got "12.22.12"

ai commented 1 year ago

Yes. Node.js 12 doesn't have security fixes anymore and should not be used.

https://nodejs.dev/en/about/releases/

masudhossain commented 1 year ago

Was this a recent change? I've been using node12 for a while now and everything worked great until today.

Yes. Node.js 12 doesn't have security fixes anymore and should not be used.

https://nodejs.dev/en/about/releases/

ai commented 1 year ago

@masudhossain about a year ago https://vercel.com/changelog/node-js-12-is-being-deprecated

You should change your policies and practices. Using Node.js 12 in production is dangerous. You should use Node.js 16 or 18.