╰─ npm i --dry-run ─╯
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'newrelic@5.13.1',
npm WARN EBADENGINE required: { node: '>=6.0.0 <13.0.0', npm: '>=3.0.0' },
npm WARN EBADENGINE current: { node: 'v14.17.1', npm: '8.1.3' }
npm WARN EBADENGINE }
2条答案
按热度按时间jv4diomz1#
在
package.json
中,使用引擎示例:
它不会自动安装Node.js版本,但会提醒错误版本或开发人员可以看到必要的版本。
zpjtge222#
使用
npm install --dry-run
,它会告诉您当前引擎是否受支持。在某些情况下,它会选择一个依赖于特定引擎的软件包,并显示一个有用的警告,告诉你要使用哪个版本。