npm ERR! Cannot read properties of null (reading ‘matches‘)

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‘)_第1张图片

你可能感兴趣的:(npm,前端,node.js)