当前位置:网站首页>NPM - Cannot read properties of null (reading 'pickAlgorithm') 解决方案
NPM - Cannot read properties of null (reading 'pickAlgorithm') 解决方案
2022-08-10 15:02:00 【为为为什么】
当本地 npm 包版本与项目配置不一致时经常出现各种引用错误,本文记录解决方案。
问题复现
- 在已经配置好的 npm 环境种,修改 package.json 后经常产生错误:
npm ERR! Cannot read properties of null (reading 'pickAlgorithm')
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2022-07-04T01_55_30_086Z-debug-0.log
解决方案
- 清除缓存
npm cache clear --force之后再重新安装依赖npm install
npm cache clear --force
npm install- 若出现端口号冲突 1、关闭该端口的进程; 2、通过
npm serve --port 4201指定端口号打开
参考资料
边栏推荐
猜你喜欢

Appium进行APP自动化测试

Mysql语句分析、存储引擎、索引优化等详情

Oracle database backup DMP file is too big, what method can be split into multiple DMP when backup?

Redis -- Nosql

Oracle数据库备份dmp文件太大,有什么办法可以在备份的时候拆分成多个dmp吗?

程序调试介绍及其使用

Community News——Congratulations to Dolphin Scheduling China User Group for 9 new "Community Administrators"

一个 ABAP 开发的新浪微博语义情感分析工具

全志V853开发板移植基于 LVGL 的 2048 小游戏

Appium for APP automation testing
随机推荐
Network engineer's backpack (EDC summary recommendation)
fatal error C1083 Unable to open include file 'io.h' No such file
Yann LeCun转推:参数减少50倍,性能还更好,MetaAI推出Atlas信息检索模型
Recommend a few had better use the MySQL open source client, collection!
Go Context基本使用
Brainstorm: Goals and
QOS function introduction
奢侈品鉴定机构小程序开发制作功能介绍
QOS功能介绍
紫金示例
DB2查询2个时间段之间的所有月份,DB2查询2个时间段之间的所有日期
【教程】HuggingFace的Optimum组件已支持加速Graphcore和英特尔Habana芯片
全志V853开发板移植基于 LVGL 的 2048 小游戏
秒杀项目收获
阿里五位MySQL封神大佬耗17个月总结出53章性能优化法则
富爸爸穷爸爸之读书笔记
How to code like a pro in 2022 and avoid If-Else
Azure IoT Partner Technology Empowerment Workshop: IoT Dev Hack
基于inotify实现落盘文件的跨进程实时读写交互
CSP-J1 CSP-S1 初赛 第1轮(2022.08.09)