nodejs 008:错误 npm WARN old lockfile: The package-lock. json file was created with an old version of

问题描述

  • npm WARN old lockfile 警告标志: npm WARN old lockfile: The package-lock. json file was created with an old version of npm,so supplemental metadata must be fetched from the registry.

解决方法

  • 可通过删除 node_modules 文件夹和 package-lock.json 文件,然后重新安装依赖来更新 package-lock.json 文件。这通常会自动生成一个新的锁文件,兼容你当前使用的 npm 版本:
    rm -rf node_modules package-lock.json
    npm install
    
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 old lockfile vue-loader-v16: No matching version found for vue-loader-v16@16.8.1. npm WARN old lockfile at module.exports (D:\Nodejs\node_modules\npm\node_modules\npm-pick-manifest\lib\index.js:209:23) npm WARN old lockfile at RegistryFetcher.manifest (D:\Nodejs\node_modules\npm\node_modules\pacote\lib\registry.js:125:22) npm WARN old lockfile at async Array.<anonymous> (D:\Nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:738:24) npm WARN old lockfile Could not fetch metadata for vue-loader-v16@16.8.1 vue-loader-v16: No matching version found for vue-loader-v16@16.8.1. npm WARN old lockfile at module.exports (D:\Nodejs\node_modules\npm\node_modules\npm-pick-manifest\lib\index.js:209:23) npm WARN old lockfile at RegistryFetcher.manifest (D:\Nodejs\node_modules\npm\node_modules\pacote\lib\registry.js:125:22) npm WARN old lockfile at async Array.<anonymous> (D:\Nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:738:24) { npm WARN old lockfile code: 'ETARGET', npm WARN old lockfile type: 'version', npm WARN old lockfile wanted: '16.8.1', npm WARN old lockfile versions: [ npm WARN old lockfile '16.0.0-beta.5.4', npm WARN old lockfile '16.0.0-beta.5.3', npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm WARN deprecated core-js@3.8.1: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
06-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值