Unable to execute vue serve at command prompt: Please run npmi-g @vue/cli-service-global and try again

Asked 2 years ago, Updated 2 years ago, 344 views

What do you want to solve

I'm learning a book called Vue.JS3 Super Introduction by Yano Shotatsu, but I stumble in the beginning.
I'm trying to run vue serve at the command prompt, but it doesn't work.

Problems/errors encountered

The Vue CLI has already been downloaded and installed, but as shown in the second line below, please runnpmi-g@vue/cli-service-global and try again appears and cannot be vue serve.Why can't it be carried out even though it's supposed to follow the book?
Please let me know who knows.

Screenshot 2021-10-10 222857.png

vue.js

2022-09-30 21:59

1 Answers

I tried reading the Kindle version of the book, and on page 40, there is an item called "Install Vue cli-service-global.It says to run npm install-g@vue/cli-service-global.

As a result of executing the command as you commented, I was able to do a vue save.Thank you metropolis.


2022-09-30 21:59

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.