Cannot read properties of null (reading ‘pickAlgorithm‘)

在执行npminstall时遇到Cannotreadpropertiesofnull(readingpickAlgorithm)的错误。通过运行npmcacheclear--force清理缓存后,重新运行npminstall命令,成功安装且无报错。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2568 verbose node v16.15.0
2569 verbose npm v8.5.5
2570 error Cannot read properties of null (reading ‘pickAlgorithm’)
2571 verbose exit 1
2572 timing npm Completed in 20918ms
2573 verbose unfinished npm timer reify 1673607123032
2574 verbose unfinished npm timer reify:loadTrees 1673607123039
2575 verbose code 1
2576 error A complete log of this run can be found in:
2576 error C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-01-13T10_52_02_816Z-debug-0.log

在终端中运行命令:
npm cache clear --force

然后重新运行 npm i 命令,再次安装
安装完成,没有出现报错

在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值