Can't install eslint with node 15.10.0

Viewed 705

I am having trouble installing eslint on my MacBook pro(big sure)

I have node v15.10 and its asking for 12 so I am not sure what the issue is...

I am not finding much information across the interwebs on this one...

bash-3.2$ npm install eslint
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: undefined,
npm WARN EBADENGINE   required: { node: '12' },
npm WARN EBADENGINE   current: { node: 'v15.10.0', npm: '7.5.3' }
npm WARN EBADENGINE }

up to date, audited 307 packages in 2s

22 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
1 Answers

try installing using this

sudo npm install -g eslint --unsafe-perm=true --allow-root

instead of

npm install eslint
Related