当前位置:网站首页>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
指定端口号打开
参考资料
边栏推荐
猜你喜欢
使用 ABAP 正则表达式解析 uuid 的值
SWIG教程《一》
Community News——Congratulations to Dolphin Scheduling China User Group for 9 new "Community Administrators"
Introduction to program debugging and its use
It is reported that the original Meitu executive joined Weilai mobile phone, the top product may exceed 7,000 yuan
Zijin Example
微信小程序,自定义输入框与导航胶囊对其
fastposter v2.9.1 programmer must-have poster generator
物资采购小程序开发制作功能介绍
Yi Gene|In-depth review: epigenetic regulation of m6A RNA methylation in brain development and disease
随机推荐
LeetCode_2598_剑指Offer Ⅱ 091.粉刷房子
TestLink Export Use Case Transformation Tool
SWIG教程《四》-go语言的封装
程序调试介绍及其使用
网络工程师的背包(EDC总结推荐)
It is reported that the original Meitu executive joined Weilai mobile phone, the top product may exceed 7,000 yuan
关于async\await 的理解和思考
10 advanced functions of scala
fatal error C1083 无法打开包括文件'io.h' No such file
NFT digital collection development issue - digital collection platform
“蔚来杯“2022牛客暑期多校训练营7
E. Cross Swapping(并查集变形/好题)
蓝帽杯半决赛火炬木wp
数据在内存中的存储
Mysql statement analysis, storage engine, index optimization, etc.
PAT甲级 1014 排队等候(队列大模拟+格式化时间)
中学数学建模书籍及相关的视频等(2022.08.09)
Mysql语句分析、存储引擎、索引优化等详情
Oracle database backup DMP file is too big, what method can be split into multiple DMP when backup?
pm2之静态文件服务