在 Gitlab 中使用 npm install 时出现权限被拒绝的错误

编程入门 行业动态 更新时间:2024-10-04 23:28:49

在 Gitlab 中使用 npm install 时出现权限<a href=https://www.elefans.com/category/jswz/34/1771279.html style=被拒绝的错误"/>

在 Gitlab 中使用 npm install 时出现权限被拒绝的错误

我正在尝试使用 HTTPS url 在 GITLAB 中克隆与 Dialogflow 项目相关的回购协议。我能够成功克隆它。 使用 npm i /npm install 时,我遇到以下错误:

[email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.

我参考了几篇文章/几篇文章并创建了 SSH 密钥。仍然面临这个问题。

请找到下面的 package.json:

  {
      "name": "webhook-boilerplate",
      "version": "1.0.0",
      "description": "xxx",
      "email": "support.xxx",
      "license": "Apache License 2.0",
      "main": "server.ts",
      "scripts": {
        "start": "webpack --mode development --env development",
        "build": "webpack --mode production --env production",
        "watch": "nodemon dist/bundle.js",
        "test": "jest"
      },
      "jest": {
        "preset": "ts-jest",
        "testTimeout": 5000,
        "collectCoverage": true,
        "coveragePathIgnorePatterns": [
          "node_modules",
          "fallback-one.ts",
          "fallback-two.ts",
          "fallback-three.ts",
          "repeat.ts",
          "tag-mapper.ts",
          "webhook/lib/database/index.ts",
          "default-tag.ts",
          "webhook/intent-library/actions/default.ts",
          "webhook/intent-library/intents/default-welcome-intent.ts",
          "webhook/handler-v3/example/index.ts",
          "webhook/handler-v3/example/logic/example-logic.ts",
          "webhook/intent-library/action-mapper.ts",
          "webhook/intent-library/intent-mapper.ts",
          "webhook/intent-library/webhook-controller.ts",
          "webhook/lib/dialogflow-fulfillment-builder-v3/index.ts",
          "webhook/lib/http/index.ts",
          "error-handler.ts",
          "validation-error.ts",
          "request-validator.ts",
          "api-helper.ts",
          "webhook/handler-v3/tags/index.ts",
          "webhook/helper/basic-auth.ts",
          "webhook/app.ts",
          "lib/logger/index.ts"
        ]
      },
      "engines": {
        "node": ">=6.0.0"
      },
      "repository": {
        "type": "git",
        "url": "/"
      },
      "issues": {
        "url": "/"
      },
      "homepage": "/",
      "dependencies": {
        "@google-cloud/firestore": "^3.3.3",
        "ajv": "^6.12.3",
        "axios": "^1.1.3",
        "dialogflow-fulfillment-builder": "github:xxx/dialogflow-fulfillment-builder",
        "dotenv": "^16.0.3",
        "express": "^4.16.3",
        "express-winston": "^4.0.1",
        "handlebars": "^4.7.6",
        "hash-generator": "^0.1.0",
        "helmet": "^3.21.2",
        "jest": "^29.3.1",
        "nodemailer": "^6.4.11",
        "pdf-creator-node": "^1.4.1",
        "puppeteer": "^5.3.0",
        "request": "^2.88.2",
        "request-promise": "^4.2.5",
        "winston": "^3.0.0"
      },
      "devDependencies": {
        "@jest/globals": "^29.3.1",
        "@types/express": "^4.17.13",
        "@types/jest": "^29.2.3",
        "@types/node": "^17.0.35",
        "json-loader": "^0.5.7",
        "nodemon": "^2.0.16",
        "supertest": "^6.3.1",
        "ts-jest": "^29.0.3",
        "ts-loader": "^9.3.0",
        "typescript": "^4.9.3",
        "webpack": "^5.72.1",
        "webpack-cli": "^4.9.2",
        "webpack-shell-plugin-next": "^2.2.2"
      },
      "keywords": [
        "webhook framework",
        "dialogflow webhook",
        "virtual agent",
        "boilerplate",
        "dialogflow boilerplate",
        "fulfillment service"
      ]
    }

你能帮帮我吗?如果我需要在问题中添加更多详细信息,请告诉我。

回答如下:

更多推荐

在 Gitlab 中使用 npm install 时出现权限被拒绝的错误

本文发布于:2024-05-30 21:16:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1770931.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:被拒   权限   错误   Gitlab   npm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!