1、npm install body-parser 报错npm ERR! Cannot read properties of null (reading ‘matches’)
reply: npm cache clean --force,再重新安装
2、cnpm install --save core-js/modules/es.array.push.js core-js/modules/es.error.cause.js core-js/modules/es.object.proto.js svg-baker-runtime/browser-symbol
报错:no such file or directory,
reply:删除package.json 的 core-js,删除node_modules中的已经安装的core-js,重新安装core-js
3、最后直接安装cnpm i svg-baker-runtime --save

npm ERR! Cannot read properties of null (reading ‘matches‘)
解决npm安装过程中的常见错误:body-parser,core-js及svg-baker-runtime问题
最新推荐文章于 2025-06-06 08:45:38 发布
本文介绍了在使用npm安装过程中遇到的三个问题:body-parser报错、core-js模块缺失和svg-baker-runtime安装失败的解决方案,包括清理npm缓存、删除相关模块并重新安装。
4231

被折叠的 条评论
为什么被折叠?



