How to fix 'Cannot find module vue-cli-service.js'? How to fix 'Cannot find module vue-cli-service.js'? vue.js vue.js

How to fix 'Cannot find module vue-cli-service.js'?


In my case (Windows), the node_modules\.bin\vue-cli-service.cmd was failing because one of my parent folders had an ampersand character which breaks %~dp0


This is just from my experience concerning this issue using multiple disks on a windows 10 development environment:I have a work machine using multiple hard-drives: one split for the OS and another for file storage. The vue-cli install by following(droning off) the docs by default installed to my primary disk (C:), however attempting to configure -of which was successful- but running from the secondary disk (D:) resulted in the same error. Running vue-cli commands to create and serve the vue js app (the crux of the issue here) on the primary disk (C:) resolved this issue for me.

Please note: this is not an intact solution but rather observation from my end, even if it may sound trivial.


I had a clean_bins.cmd script run in my project which searches for all /bin/ folders and removes it. After I run that script I had the same problem with vue.

To solve the issue just clean the /node_modules/ folder and run npm install.