MAC installation vue-Cli,npm run dev error

clipboard.png
currently trying to solve the problem: the port in
cnpm,sudo,indexjs has been changed to the port number. It is useless.

Mar.11,2021

< del > try to remove node_modules, reinstall dependency < / del >
does not specify localhost
add
127.0.0.1 localhost
to the host file or modify the dev command in package.json, add-- host 127.0.0.1

after webpack-dev-server
Menu