运行npm install 的时候,报错:
npm ERR! Cannot read property 'match' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/administrator/.npm/_logs/2020-03-04T04_47_18_515Z-debug.log
只执行:npm cache clear --force还是会报错。
分别执行下面4条命令:
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install