Tuesday, October 12, 2021

vue create fails to start project using npm run serve returning: Local: "http://[C:]:3000/"


>PROBLEM

Following the instructions in Vue's documentation after issuing the command:

npm run service


returns the following:

Local: "http://[C:]:3000/"


Naturally, this address fails.

 



>SOLUTION

After searching Vue's documentations and trying to set configuration files, the easiest way was to start the app using the following comand:

npm run serve -- --port 3000 --host localhost








TIP

Try vite instead using just vue. Check its topic here.


>ENV

Windows 10
Tested with Vue 2 and 3



No comments:

Post a Comment