Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
AWS Elastic Beanstalk,无法安装托管在bitbucket上的node.js私有模块_Node.js_Amazon Web Services_Npm_Amazon Elastic Beanstalk - Fatal编程技术网

AWS Elastic Beanstalk,无法安装托管在bitbucket上的node.js私有模块

AWS Elastic Beanstalk,无法安装托管在bitbucket上的node.js私有模块,node.js,amazon-web-services,npm,amazon-elastic-beanstalk,Node.js,Amazon Web Services,Npm,Amazon Elastic Beanstalk,我正在尝试将node.js应用程序部署到Elastic Beanstalk 在main package.json中,我有一个托管在Bitbucket上的私有模块 "dependencies": { "my-module": "git+https://<API-KEY>:x-oauth-basic@bitbucket.org/<team>/my-module.git"} 我不明白为什么会失败 您将获得错误权限拒绝公钥。从比特桶。Elasticbeanstalk部分很好,只

我正在尝试将node.js应用程序部署到Elastic Beanstalk

在main package.json中,我有一个托管在Bitbucket上的私有模块

"dependencies": {
"my-module": "git+https://<API-KEY>:x-oauth-basic@bitbucket.org/<team>/my-module.git"}

我不明白为什么会失败

您将获得错误权限拒绝公钥。从比特桶。Elasticbeanstalk部分很好,只是没有下载私人回购协议的权限。您必须将公钥放入Bitbucket或使用HTTP身份验证。

我认为问题更多地与Bitbucket或npm有关,后者试图使用公钥git+ssh而不是git+https
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org- <team>-my-module-git-ac810b24
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: Cloning into bare repository '/root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24'...
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: Permission denied (publickey).
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: fatal: Could not read from remote repository.
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24:
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: Please make sure you have the correct access rights
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24: and the repository exists.
npm ERR! Linux 3.14.35-28.38.amzn1.x86_64
npm ERR! argv "/opt/elasticbeanstalk/node-install/node-v0.12.2-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v0.12.2-linux-x64/bin/npm" "--production" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code 128

npm ERR! Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/<team>/my-module.git /root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24
npm ERR! Cloning into bare repository '/root/.npm/_git-remotes/ssh-git-bitbucket-org-<team>-my-module-git-ac810b24'...
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
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