在使用 npm install 命令安装依赖时,报出了 Cannot read properties of null (reading 'pickAlgorithm') 这个错误,这个可能是由于 npm 的缓存问题引起的。
npm install
解决方法如下,输入命令:
shell npm cache clear --force 清除一下 npm 的缓存,基本上应该能行了。
shell npm cache clear --force