我正在尝试将MEAN stack应用程序部署在具有IP abcd.company.com
的URL W.X.Y.Z
的服务器上,并遇到以下错误,如何将其部署在服务器上
usernames-MacBook-Pro-2:application username$ ng serve --host W.X.Y.Z
listen EADDRNOTAVAIL: address not available 17.208.250.103:4200
Error: listen EADDRNOTAVAIL: address not available 17.208.250.103:4200
at Server.setupListenHandle [as _listen2] (net.js:1262:19)
at listenInCluster (net.js:1327:12)
at doListen (net.js:1460:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:832:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
scripts entry in package.json
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},