【发布时间】:2020-11-14 19:13:56
【问题描述】:
我正在尝试安装 Vercel 包:
$ sudo npm i -g vercel
> vercel@19.2.0 preinstall /usr/local/lib/node_modules/vercel
> node ./scripts/preinstall.js
> Error! Detected unsupported Node.js version.
Expected ">= 10" but found "8.10.0".
Please update to the latest Node.js LTS version to install Vercel CLI.
npm WARN notsup Unsupported engine for vercel@19.2.0: wanted: {"node":">= 10"} (current: {"node":"8.10.0","npm":"6.14.6"})
npm WARN notsup Not compatible with your version of node/npm: vercel@19.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vercel@19.2.0 preinstall: `node ./scripts/preinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vercel@19.2.0 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
它声称我的节点版本不高于 v10,但是当我执行以下操作时,它显示:
$ node -v
v12.18.2
和 npm:
$ npm -v
6.14.6
那么,谁在撒谎? ;) 有什么问题?
【问题讨论】: