jenkins执行npm install -g pnpm@9.1.3会报
npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'pnpm@9.1.3', npm WARN EBADENGINE required: { node: '>=18.12' }, npm WARN EBADENGINE current: { node: 'v16.17.0', npm: '8.5.1' } npm WARN EBADENGINE }
原因是从pnpm v9.0.0-rc.2开始不再对node 16版本进行支持
此时降低pnpm的版本即可解决
npm install -g pnpm@8.15.8
pnpm版本可以从Releases · pnpm/pnpm (github.com)查找