当前位置:网站首页>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
指定端口号打开
参考资料
边栏推荐
猜你喜欢
随机推荐
富爸爸穷爸爸之读书笔记
[Semantic Segmentation] DeepLab Series
JS入门到精通完整版
秒杀项目收获
Data Types and Integer Storage
QOS function introduction
fastposter v2.9.1 程序员必备海报生成器
蓝帽杯半决赛火炬木wp
兆骑科创创业赛事活动发布平台,创业赛事,项目路演
E. Cross Swapping(并查集变形/好题)
Appium for APP automation testing
scala 10种函数高级应用
Boss raises salary!Look at my WPF Loading!!!
Lilac Garden
Scala collections
小程序-语音播报功能
pm2 static file service
使用 ABAP 正则表达式解析 uuid 的值
DB2查询2个时间段之间的所有月份,DB2查询2个时间段之间的所有日期
Understanding_Data_Types_in_Go