npm install 忽然報這個錯 以前仍是好好地node
npm ERR! Cannot read property 'match' of undefined npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-08-06T01_49_46_486Z-debug.log
回憶了一下 應該是項目多出了package-lock.json致使的npm
按照如下步驟依次操做便可:json
npm cache clear --force
(執行完成後npm install 沒效再執行步驟2)rm -rf node_modules rm package-lock.json npm cache clear --force npm install