Webpack configuration port number error, options.startPort (80) is less than 1024

original configuration:

    host: "localhost",
    port: 80, 
    autoOpenBrowser: true,
    errorOverlay: true,
    notifyOnErrors: true,
    ......

can"t run. The error is as follows:

Error: Provided options.startPort(80) is less than 1024, which are cannot be bound.
    at Object.exports.getPort (E:\workspace\vue\gitProj\dcim-saas-console\node_modules\portfinder\lib\portfinder.js:106:13)
    at module.exports.Promise (E:\workspace\vue\gitProj\dcim-saas-console\build\webpack.dev.conf.js:82:13)
    at new Promise (<anonymous>)
    at Object.<anonymous> (E:\workspace\vue\gitProj\dcim-saas-console\build\webpack.dev.conf.js:80:18)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at requireConfig (E:\workspace\vue\gitProj\dcim-saas-console\node_modules\webpack\bin\convert-argv.js:97:18)
    at E:\workspace\vue\gitProj\dcim-saas-console\node_modules\webpack\bin\convert-argv.js:104:17
    at Array.forEach (<anonymous>)
    at module.exports (E:\workspace\vue\gitProj\dcim-saas-console\node_modules\webpack\bin\convert-argv.js:102:15)
    at Object.<anonymous> (E:\workspace\vue\gitProj\dcim-saas-console\node_modules\webpack-dev-server\bin\webpack-dev-server.js:223:50)

do any bosses know why? I can change to a port of 8080. Can"t it be less than 1024? why

Apr.05,2021

Port number cannot be less than 1024. Below 1024 are dedicated ports.

Menu