无法使用节点 15.10.0 安装 eslint
Can't install eslint with node 15.10.0
我在我的 MacBook pro 上安装 eslint 时遇到问题(很确定)
我有节点 v15.10,它要求 12,所以我不确定问题出在哪里...
我在网上找不到太多关于这方面的信息...
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
尝试使用此安装
sudo npm install -g eslint --unsafe-perm=true --allow-root
而不是
npm install eslint
我在我的 MacBook pro 上安装 eslint 时遇到问题(很确定)
我有节点 v15.10,它要求 12,所以我不确定问题出在哪里...
我在网上找不到太多关于这方面的信息...
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
尝试使用此安装
sudo npm install -g eslint --unsafe-perm=true --allow-root
而不是
npm install eslint