No bundle URL present. Failed to resolve address for 'localhost': nodename nor servname provided, or not known
No bundle URL present.
Make sure you're running a packager server or have included a .jsbundle file in your application bundle.
Failed to resolve address for 'localhost': nodename nor servname provided, or not known
出现这种错误 首先打开xcode 查看具体详细的错误
Java Web项目在Mac系统上启动时提示nodename nor servname provided的解决办法
打开Mac系统上的终端,查看查看当前主机DNS的配置,输入命令cat /private/etc/hosts,如图所示:
2、,然后编辑主机配置,增加主机名的映射,输入命令sudo vi /private/etc/hosts,进入VI编辑器,增加如下的映射
127.0.0.1 localhost
退出保存即可。
3、最后,在终端中输入刷新的命令dscacheutil -flushcache