npm运行报错信息npm WARN EBADENGINE
JavaScipt
2023-05-31 22:16:12
vue项目运行后报错,报错信息如下:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@nuxt/babel-preset-app@2.16.3',
npm WARN EBADENGINE required: { node: '^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0' },
npm WARN EBADENGINE current: { node: 'v14.17.5', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@nuxt/builder@2.16.3',
npm WARN EBADENGINE required: { node: '^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0' },
npm WARN EBADENGINE current: { node: 'v14.17.5', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@nuxt/cli@2.16.3',
npm WARN EBADENGINE required: { node: '^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0' },
npm WARN EBADENGINE current: { node: 'v14.17.5', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@nuxt/config@2.16.3',
npm WARN EBADENGINE required: { node: '^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0' },
npm WARN EBADENGINE current: { node: 'v14.17.5', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@nuxt/core@2.16.3',
npm WARN EBADENGINE required: { node: '^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0' },
npm WARN EBADENGINE current: { node: 'v14.17.5', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@nuxt/generator@2.16.3',
npm WARN EBADENGINE required: { node: '^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0' },
npm WARN EBADENGINE current: { node: 'v14.17.5', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@nuxt/server@2.16.3',
npm WARN EBADENGINE required: { node: '^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0' },
npm WARN EBADENGINE current: { node: 'v14.17.5', npm: '8.11.0' }
npm WARN EBADENGINE }
从上述报错信息可知,需求的node版本和你电脑版本的需求不一致。
需求node版本为'^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0',但电脑实际版本为v14.17.5。
关于该情况需要将本地电脑的版本安装成需求版本,即^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
查看自己本地安装node版本
node -v
如何重新安装node版本,先卸载本地的nodejs,再去nodejs官网重新下载nodejs安装。
若不清楚具体流程,可本站搜索“window系统中安装nodejs或更换nodejs版本流程”
六月初字帖坊小程序
你想要的字帖模板及工具,这里都有!
877篇文章
4069人已阅读