运行时出现错误 npm install
。错误是:
npm ERR! Cannot read property 'pickAlgorithm' of null
npm ERR! A complete log of this run can be found in:
npm ERR! npm-cache_logs\2021-10-14T08_03_47_266Z-debug.log
我做了以下但错误仍然存在:
- 已删除
node-modules
- 删除了给定的文件
- 正在运行
npm cache clear --force
环境:
操作系统:Windows 10
反应原生:0.65.1
节点:14.17.4
npm:7.21.0
原文由 Kiana Kazeminejad 发布,翻译遵循 CC BY-SA 4.0 许可协议
升级到 npm v7.23.0 然后
npm install
所以它现在工作正常。