error: getaddrinfo enoent code> error resolution
When NPM run dev is used to run Vue project, error: getaddrinfo enoent code> is reported as follows:
Cause of the problem:
Localhost is not bound to 127.0.0.1 code>
resolvent:
Find the hosts code> file in
C:// Windows/system32/Drivers/etc code>, add
127.0.0.1 code> to the
hosts code> file, and save it, as shown in the figure below: