2017-08-08 9 views
-1

私はNodeJs開発で新しく、私はAzureに自分のアプリケーションをデプロイしようとしていますが、いくつかの問題に直面しています。 This is the problemAzureにNodejs Appを継続的にデプロイ

events.js:141 
     throw er; // Unhandled 'error' event 
    ^

Error: listen EADDRINUSE \\.\pipe\5799b955-24fe-43fb-abe5-344be4ce5640 
    at Object.exports._errnoException (util.js:873:11) 
    at exports._exceptionWithHostPort (util.js:896:20) 
    at Server._listen2 (net.js:1237:19) 
    at listen (net.js:1286:10) 
    at Server.listen (net.js:1376:5) 
    at Object.<anonymous> (D:\home\site\wwwroot\app.js:95:7) 
    at Module._compile (module.js:409:26) 
    at Object.Module._extensions..js (module.js:416:10) 
    at Module.load (module.js:343:32) 
    at Function.Module._load (module.js:300:12) 

npm ERR! Windows_NT 6.2.9200 
npm ERR! argv "D:\\Program Files (x86)\\nodejs\\4.4.7\\node.exe" "D:\\Program Files (x86)\\npm\\2.15.8\\node_modules\\npm\\bin\\npm-cli.js" "start" 
npm ERR! node v4.4.7 
npm ERR! npm v2.15.8 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `node app.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node app.js'. 
npm ERR! This is most likely a problem with the NodejsWebApp1 package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node app.js 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs NodejsWebApp1 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR! 
npm ERR!  npm owner ls NodejsWebApp1 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  D:\home\site\wwwroot\npm-debug.log 

誰もがこの問題を解決する方法を知っていますか? は、すでに存在しているのprotに耳を傾けるあなたは

+0

'app.js'行' 95'は何をしますか? –

+2

エラーメッセージの画像を投稿しないでください。あなたのポストに関連するコード、スタックトレースなどを含めてください。 – avojak

+0

@FelixFong Line 95接続をリスンするサーバを開始します。 serve.listen(app.get( 'port')、function(){ console.log( 'ポート上で待機しているExpressサーバ+ app.get(' port ' ));} –

答えて

0

How to fix Error: listen EADDRINUSE while using nodejs?によると、問題はあなたのアプリですされてありがとう、と私は

+0

はい、それは問題がポートに関連していると思います。 複数のポートを試しましたが、問題は解決しません –

1

あなたはAzureのアプリケーションで名前付きパイプポートを処理するためのprocess.env.PORTを使用する必要がありますあなたのポートを変更するにあなたを示唆しますサービス、Listen additional port Microsoft Azure Nodejsを参照してください。

関連する問題