Because of a problem with my computer, I reinstalled my system yesterday. After reinstalling, I used the NPM Run Dev command to start the Vue project, Error: Listen EADDRNOTAVAIL. Screenshot below:
Errors have been framed in the diagram, This EADDRNOTAVAIL I have limited English skills and don’t even know what the translation means, but I did mention that your address and port were a problem.
The address configuration in my VUE project looks like this:
If the project created by Webpack-Simple is looking at the IP address here, I’m portal, click me
Later, I found that if host used localhost, the project could start normally, so I fell into confusion again…
See here, you may have found something, I was not until this morning, suddenly a flash of light to remember that my IP was manually bound before, is 192.168.3.xxx, after reinstallation did not modify my local IP address, is automatically acquired, IP is 192.168.5.XXX, ok, until here, the problem is solved.
Expand your knowledge:
In vUE project address configuration, we can fill in the following:
Errors have been framed in the diagram, This EADDRNOTAVAIL I have limited English skills and don’t even know what the translation means, but I did mention that your address and port were a problem.
The address configuration in my VUE project looks like this:
If the project created by Webpack-Simple is looking at the IP address here, I’m portal, click me
Later, I found that if host used localhost, the project could start normally, so I fell into confusion again…
See here, you may have found something, I was not until this morning, suddenly a flash of light to remember that my IP was manually bound before, is 192.168.3.xxx, after reinstallation did not modify my local IP address, is automatically acquired, IP is 192.168.5.XXX, ok, until here, the problem is solved.
Expand your knowledge:
In vUE project address configuration, we can fill in the following:
host set | accessible path | description |
---|---|---|
3 localhost | 5 localhost 127.0.0.1 | 7 localhost is mapped with 127.0.0.1 in the host file by default, On behalf of the local so can visit each other between td> tr> |
127.0.0.1 td> | localhost 127.0.0.1 td> | explain ditto td> tr> |
0.0.0.0 td> | localhost 127.0.0.1 192.168 7.0.x.x X td> | 0.0.0.0 we rarely use at ordinary times, Accidentally discovered that I was still can write that we can find a very interesting thing, the other three paths can be accessed, but use 0.0.0.0 but cannot access it is a reserved address, temporarily not delve into the specific principles, but this way can let other default address to visit td> tr> |
192.168 7.0.x.x X td> | 192.168 7.0.x.x X td> | use this method of LAN IP, the biggest advantage is the others to their own projects can be accessed through the IP address; Of course, 0.0.0.0 can also be implemented, but this way after we start the project, we can directly click the console address to open access (lazy) |
Conclusion:
Through the host method above, I have summarized several usage scenarios by myself:
1. When the project is only run and accessed in its own project, the default localhost can be used without modifying anything;
2. The project will be run and debuggable on your own computer, and other members of the team will need to access your page, using 192.168.x.xx. Why not use 0.0.0.0?Because of laziness, every time the project is started, I can directly click on the address of the console to access, why do I have to type the address again?What’s more, with a project like WebPack-Simple, the default browser access is automatically opened upon startup, and it’s a hassle to change the address every time.
Read More:
- Error starting userland proxy: listen TCP 0.0.0.0:9000: Listen: address already in use
- The Tomcat connector configured to listen on port 7014 failed to start
- The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in u
- Error: listen eaddnotavail: address not available
- Nodejs exception error: listen eacces 127.0.0.1:8000
- Error: listen EADDRNOTAVAIL: address not available 192.168.43.149:8002
- listen EADDRINUSE 127.0.0.1:3000
- Vue project start npmrun dev failed, error: splash CMD enoent
- Error: listen eadrinuse::: 8000 solution
- Error: listen eadrinuse: address already in use
- Error: listen EADDRINUSE :::3000
- filezilla Failed to create listen socket on port 21 for IPv4 solution
- When writing a website, Vue + Flash prompts network error when visiting Vue page
- After introducing sass into Vue project, start to report error typeerror [err]_ INVALID_ ARG_ Type]: the “path” argument must be of type string
- Solution to the problem that listen TCP 0.0.0.0:3306: bind: address already in use port is occupied in Linux centos7
- Error receiving broadcast Intent { act=com.supersdk.listen.PayListen_defeat flg=0x10 (has extras)
- Some error occurred error: listen eaddinuse: address already in use 127.0.0.1:3000
- Idea installation vue.js After plug-in, new has no Vue component
- Tdengine failed to start, start request repeated too quickly for taosd.service
- Box mount Cody_ How to listen to Pandora in Cody