[Vuejs]-"[BABEL] Cannot find module" on a fresh PC install

1👍

you can remove the lock files generated (package-lock.json)
and then remove the node modules from your project.

And then again try to download the dependencies via npm
as npm install

2👍

In project folder:

rm package_lock.json
rm -r node_modules
npm install

Turns out I had package_lock.json on git from another system. Removed it and it worked.

Leave a comment