I had the same problem.
I removed both node_modules and package-lock.json and then did:
npm install
And it worked.
Edit by @OwlyMoly
Due to new updates and the restriction to old dependencies in package-lock.json is causing this conflicts. By doing npm install
won't fix this issue. Instead by ditching npm_modules and package-lock.json and doing npm install
will load a new node_modules and that supposed to be required by package.json. You have to commit the new package-lock.json along with your latest changes of the project.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…