我在使用ElasticBeanStalk將我的Node.JS應用程序部署到AWS時遇到了一些麻煩。在運行npm install時多次調用回調
一旦部署開始,而(通過AWS默認)運行npm install
腳本,我得到以下奇怪的錯誤:
[email protected] node_modules/material-ui
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
npm ERR! Linux 4.1.17-22.30.amzn1.x86_64
npm ERR! argv "/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/bin/npm" "--production" "install"
npm ERR! node v4.3.0
npm ERR! npm v2.14.12
npm ERR! Callback called more than once.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/deployment/application/npm-debug.log
誰能幫我調試這個問題?我已經花了太多時間試圖瞭解發生了什麼,但迄今爲止沒有結果。
謝謝!
我今天碰見這個問題爲好,在區域歐盟 - 部署西。發現在大多數情況下簡單地重試工作,所以它確實是間歇性的,但使用http似乎給出了更確定的結果。 – JHH