簡體   English   中英

Firebase 使用 Github package 作為 ZBB30E85411B56DC81296726ABZ4 節點時的雲功能部署問題

[英]Firebase cloud functions deployment issue when using Github package as npm node module

我在我的 Firebae 雲功能項目中使用 github 回購標簽作為 npm 模塊,它在本地環境中運行良好。

//package.json
"@instantish/martian": "github:Rakmo33/martian#v2.3.0",

但是,當我部署到 Firebase 雲函數時,它會引發以下錯誤:

"Build failed: npm ERR! Error while executing:\nnpm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/Rakmo33/martian.git\nnpm ERR! \nnpm ERR! 
Host key verification failed.\nnpm ERR! fatal: Could not read from remote repository.\nnpm ERR! \nnpm ERR! 
Please make sure you have the correct access rights\nnpm ERR! and the repository exists.\nnpm ERR! \nnpm ERR! exited with error code: 128\n\nnpm ERR! 
A complete log of this run can be found in:\nnpm ERR! /www-data-home/.npm/_logs/2021-11-25T10_28_13_554Z-debug.log; Error ID: beaf8772"

不知道你的項目的細節,但事實是如果你執行了:

npm install git+https://git@github.com/Rakmo33/martian.git#v2.3.0

你的package.json中會有這樣的東西:

"dependencies": {
    "@rakmo33/martian_fork": "git+https://git@github.com/Rakmo33/martian.git#v2.3.0"
  }

並且您將避免使用任何受密碼保護的 SSH 密鑰的必要性。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM