简体   繁体   English

Firebase 使用 Github package 作为 ZBB30E85411B56DC81296726ABZ4 节点时的云功能部署问题

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

I'm using github repo tag as npm module in my Firebae cloud functions project and it's working fine in local env.我在我的 Firebae 云功能项目中使用 github 回购标签作为 npm 模块,它在本地环境中运行良好。

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

However, when I deploy to Firebase cloud functions it throws following error:但是,当我部署到 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"

Don't know the details of your project, but the fact is if you had executed:不知道你的项目的细节,但事实是如果你执行了:

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

you would have something like this within your package.json :你的package.json中会有这样的东西:

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

and you'd have avoided the necessity of using any password-protected SSH keys.并且您将避免使用任何受密码保护的 SSH 密钥的必要性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Firebase Cloud Functions 中安装 private GitHub npm package - Installing private GitHub npm package in Firebase Cloud Functions firebase 功能部署和 npm 的问题 - issue with firebase functions deployment and npm 在 Google Cloud Functions 中安装私有 GitHub npm package 不起作用 - Installing private GitHub npm package in Google Cloud Functions does not work 如何使用 Firebase Cloud Functions.npmrc 设置私有 NPM 模块? - How To Setup Private NPM Module With Firebase Cloud Functions .npmrc? Firebase云功能部署问题 - A deployment problem of Firebase cloud functions 将 Node 模块的本地修改部署到 Cloud Functions for Firebase - Deploy a local modification of Node module to Cloud Functions for Firebase 将 Cloud Functions 用于 Firebase 时出现 CORS 错误 - CORS error when using Cloud Functions for Firebase 节点6.14.0 asyncawait npm包和Google云功能-> Javascript异步功能 - Node 6.14.0 asyncawait npm package and google cloud functions -> Javascript async functions Firebase-节点云功能错误解析触发器:找不到模块“ firebase-functions” - Firebase - Node Cloud Functions Error parsing triggers: Cannot find module 'firebase-functions' 使用Kotlin多平台时,如何在Cloud Functions for Firebase中包括简单的javascript文件作为节点依赖项? - How to include simple javascript file as node dependency in Cloud Functions for Firebase when using Kotlin multiplatform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM