Npm run dev

is npm run dev a service? why can"t you use the mobile phone of the same router to access the computer"s ip plus port?


npm run dev means to execute run instructions in the script definition of package.json .
are you talking about npm run dev of webpack ?
specifies the host, to be bound to the dev environment in the config file. You can change it to your ip.


Yes, the reason why you cannot access is that your computer does not open the port you are listening to (8000 or 8080), open the corresponding port in the firewall settings or directly open node.js access to the network.


you can use telnet to check whether the corresponding port of the LAN address is open. And whether the port of the loop address is open. And look at how your code listens to the address.


LAN access IP setting, set localhost to 0.0.0.0

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be07c8-398ab.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be07c8-398ab.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?