我在 Firebae 云函式專案中使用 github repo 標簽作為 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://[email protected]/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"
uj5u.com熱心網友回復:
不知道你的專案的細節,但事實是如果你執行了:
npm install git https://[email protected]/Rakmo33/martian.git#v2.3.0
你會在你的里面有這樣的東西package.json:
"dependencies": {
"@rakmo33/martian_fork": "git https://[email protected]/Rakmo33/martian.git#v2.3.0"
}
并且您無需使用任何受密碼保護的 SSH 密鑰。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/367342.html
標籤:节点.js 火力基地 新产品经理 谷歌云平台 谷歌云功能
上一篇:UnhandledPromiseRejectionWarning:ReferenceError:TextEncoder未在NextJS12中定義
