[Vuejs]-Mismatch vue package error in nuxtjs

2👍

I solved same problem with deleting cache files and package lock files.

rm -rf package-lock.json && npm cache clean

If you used yarn instead of npm, then

rm -rf yarn.lock && yarn cache clean

After removing lock files, install again

npm install

OR

yarn install --network-timeout 600000

Later, it might solve same problems.

0👍

Eventually I got it to work by using:

  1. rm -rf node_modules/ // Removes node_modules folder
  2. rm -rf package-lock.json && npm cache clean --force //Removes package-lock file and cleans cache forcefully (npm v5+)
  3. npm install // do a fresh install

Thanks @luiseok

0👍

npm audit fix --force 

This command is the quick fix for your question

👤Ruchir

Leave a comment