node.js報錯address not available 192.168.1.4


錯誤原因:兩個IP不同

解決方法:host改為localhost

proxyTable: {
      '/conference': {
        target: 'http://132.230.158.38:8000/conference',
        pathRewrite: {
          '^/conference': '/'
  
        }
      },
    },
    host:"localhost",
    // host: '192.168.1.4',
    // Various Dev Server settings
    //host: '192.168.1.126', // can be overwritten by process.env.HOST
    port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
    autoOpenBrowser: false,
    errorOverlay: true,
    notifyOnErrors: true,
    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM