I had to do this to fix my Mac install:
- Uninstalled vue cli first.
sudo npm uninstall -g @vue/cli
- Re-installed and added a switch to deal with some file access issue. Which gives some warnings, but no errors.
sudo npm install -g @vue/cli --unsafe-perm
- Also then, installed the dependency in the warning that printed out at the very end of the install in Step 2.
sudo npm install -g [email protected]
After step 3, a "vue --version" command prints "@vue/cli 4.5.4" at this point, but it would do that previously.
So for a real test, I created a new project in the vue ui, which took much longer (30+ seconds) than my original first project created after the original troubled vue cli install.
And that new project works! -- I clicked "serve" in the Tasks window, can see a clean build in the Output window, and the demo page loads at http://localhost:8080/ like it supposed to! Welcome to Your Vue.js App, etc...