需要新建一个前端工程,前端人员从之前的一个工程复制过来,修改了端口号,删除了不适合的代码,打算从空工程开始开发。一切顺利,npm run dev,访问浏览器,结果页面出不来。怀疑删除了不该删除的文件,重新复制,执行,故障依旧。
查看浏览器控制台,发现提示:crbug/1173575, non-JS module files deprecated.然后疯狂查寻,试了所有方案,均无任何作用。
没办法找来问我,一眼看出问题。故意对研发说,你换个浏览器试试。神奇的一幕出现了,正常。研发一脸惊讶。我揭晓了谜底,谷歌浏览器已经禁止了10080端口,类似的禁止端口还有:
端口号    原因 / 特殊端口
 1    tcpmux
 7    echo
 9    discard
 11    systat
 13    daytime
 15    netstat
 17    qotd
 19    chargen
 20    ftp data
 21    ftp access
 22    ssh
 23    telnet
 25    smtp
 37    time
 42    name
 43    nicname
 53    domain
 69    tftp
 77    priv-rjs
 79    finger
 87    ttylink
 95    supdup
 101    hostriame
 102    iso-tsap
 103    gppitnp
 104    acr-nema
 109    pop2
 110    pop3
 111    sunrpc
 113    auth
 115    sftp
 117    uucp-path
 119    nntp
 123    NTP
 135    loc-srv /epmap
 137    netbios
 139    netbios
 143    imap2
 161    snmp
 179    BGP
 389    ldap
 427    SLP (Also used by Apple Filing Protocol)
 465    smtp+ssl
 512    print / exec
 513    login
 514    shell
 515    printer
 526    tempo
 530    courier
 531    chat
 532    netnews
 540    uucp
 548    AFP (Apple Filing Protocol)
 554    rtsp
 556    remotefs
 563    nntp+ssl
 587    smtp (rfc6409)
 601    syslog-conn (rfc3195)
 636    ldap+ssl
 993    ldap+ssl
 995    pop3+ssl
 1719    h323gatestat
 1720    h323hostcall
 1723    pptp
 2049    nfs
 3659    apple-sasl / PasswordServer
 4045    lockd
 5060    sip
 5061    sips
 6000    X11
 6566    sane-port
 6665    Alternate IRC [Apple addition]
 6666    Alternate IRC [Apple addition]
 6667    Standard IRC [Apple addition]
 6668    Alternate IRC [Apple addition]
 6669    Alternate IRC [Apple addition]
 6697    IRC + TLS
 10080    Amanda