运行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/xiaoqi/.npm/_logs/2020-09-07T11_11_51_422Z-debug.log
执行以下几条命令就可以了
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install