错误提示代码如下:
$ npm install
npm ERR! Cannot read property 'match' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Program Files\nodejs\node_cache\_logs\2020-09-28T08_06_13_879Z-debug.log
解决办法:
删除项目目录下的 node_modules,依次执行如下命令:
rm -rf node_modules
rm package-lock.json3
npm cache clear --force
npm install