Angularjs 运行NPM START时,Angular 2种子项目无法进行网页打包

Angularjs 运行NPM START时,Angular 2种子项目无法进行网页打包,angularjs,angular,webpack-dev-server,Angularjs,Angular,Webpack Dev Server,所以我从GITHUB下载了angular2种子项目,并试图让它运行起来。我正在使用最新版本的NPM和NODE 这就是我在运行时看到的错误。我已经更改了webpack上的端口,也更改了服务器上的端口,还运行了sudo/non-sudo,结果相同 ``` ```端口8080已在使用中 在以下位置更改端口: 在scripts.server上,端口8080已在使用中 在以下位置更改端口: 在scripts.server上否…从3000开始,转到8080,两个都失败了。否…从3000开始,转到8080

所以我从GITHUB下载了angular2种子项目,并试图让它运行起来。我正在使用最新版本的NPM和NODE

这就是我在运行时看到的错误。我已经更改了webpack上的端口,也更改了服务器上的端口,还运行了sudo/non-sudo,结果相同

```


```端口8080已在使用中

在以下位置更改端口:


在scripts.server上,端口8080已在使用中

在以下位置更改端口:


在scripts.server上

否…从3000开始,转到8080,两个都失败了。否…从3000开始,转到8080,两个都失败了。我猜您的本地主机地址不是
122.122.122
。我建议将其更改为
127.0.0.1
某种使用机器IP的方式..我为post混淆了它…它正在报告Laptop的IP地址我猜您的本地主机地址不是
122.122.122
。我建议将其更改为
127.0.0.1
something is use the IP of the machine..我在post中对其进行了混淆…它正在报告笔记本电脑的IP地址
xxx:angular2-seed xxx$ sudo npm start

angular2-seed@1.0.0 start /Users/XX/Desktop/ANGULAR_TESTING/angular2-seed
npm run server
angular2-seed@1.0.0 server /Users/XX/Desktop/ANGULAR_TESTING/angular2-seed
webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 8080 --content-base src
57% 8/10 build modulesError: listen EADDRNOTAVAIL 122.122.122.122:8080
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at Server._listen2 (net.js:1244:19)
at listen (net.js:1293:10)
at net.js:1403:9
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:81:10)

npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/Cellar/node/6.8.0/bin/node" "/usr/local/bin/npm" "run" "server"
npm ERR! node v6.8.0
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! angular2-seed@1.0.0 server: webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 8080 --content-base src
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-seed@1.0.0 server script 'webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 8080 --content-base src'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 8080 --content-base src
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-seed
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-seed
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/XX/Desktop/ANGULAR_TESTING/angular2-seed/npm-debug.log

npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/Cellar/node/6.8.0/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.8.0
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! angular2-seed@1.0.0 start: npm run server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-seed@1.0.0 start script 'npm run server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-seed
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-seed
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/XX/Desktop/ANGULAR_TESTING/angular2-seed/npm-debug.log