在节点 16 上安装 Angular 收到警告
Install Angular on Node 16 get warnings
我正在 Node 16.15.0 或最新的 LTS 上安装 Angular,我收到以下警告,我应该继续我的项目还是更改节点版本?
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular/cli@13.3.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular-devkit/architect@0.1303.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular-devkit/core@13.3.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular-devkit/schematics@13.3.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@schematics/angular@13.3.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
我认为这是您的 npm 版本的问题,而不是节点版本的问题。
它期望 npm 版本 > 7.5.6,而你的 npm 版本是 7.5.3
required: {
...
npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
},
current: { node: 'v16.15.0', npm: '7.5.3' }
我正在 Node 16.15.0 或最新的 LTS 上安装 Angular,我收到以下警告,我应该继续我的项目还是更改节点版本?
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular/cli@13.3.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular-devkit/architect@0.1303.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular-devkit/core@13.3.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular-devkit/schematics@13.3.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@schematics/angular@13.3.5',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.20.0 || ^14.15.0 || >=16.10.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '7.5.3' }
npm WARN EBADENGINE }
我认为这是您的 npm 版本的问题,而不是节点版本的问题。 它期望 npm 版本 > 7.5.6,而你的 npm 版本是 7.5.3
required: {
...
npm: '^6.11.0 || ^7.5.6 || >=8.0.0',
},
current: { node: 'v16.15.0', npm: '7.5.3' }