我正在尝试安装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那么是谁在说谎?;)有什么问题吗?
发布于 2020-07-25 05:52:06
我建议您检查该版本是否是nvm list的默认版本。
有关设置默认版本的更多信息,请查看this question。
https://stackoverflow.com/questions/63081731
复制相似问题