npm ERR! Cannot read properties of null (reading 'pickAlgorithm')
原创 running 发表于:2022-07-23 13:00:42
  阅读 :3193   收藏   编辑

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 ERR! Cannot read properties of null (reading 'pickAlgorithm')

npm ERR! A complete log of this run can be found in:

解决办法

清除下缓存

 npm cache clear --force