npm ERR! Cannot read property 'match' of undefined

245 阅读1分钟

执行npm install报错

npm ERR! Cannot read property 'match' of undefined

npm ERR! A complete log of this run can be found in:

尝试执行npm cache clean -f,如果依然报错,可以删除项目根目录package-lock.json,再进行

npm install.