0

我有一台无法访问互联网但有本地 npm 的服务器。我正在尝试安装 Node.js 应用程序,其中一个模块指向 github。该包是依赖包之一的一部分。

{
  "name": "doccano",
  "version": "1.0.0",
  "description": "doccano is an open source annotation tools for machine learning practitioner.",
  "author": "Hironsan",
  "private": true,
  "scripts": {
  ...

  "dependencies": {
  ...
    "@toast-ui/vue-editor": "^1.1.1",
  ...
  }
} 

大多数包都是从本地 npm 下载的,但有些指向 github,然后我得到错误:

npm install
...
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/seonim-ryu/Squire.git
npm ERR!
npm ERR! ssh: Could not resolve hostname github.com: Name or service not known
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! exited with error code: 128

我可以下载存储库并将其上传到服务器,但是如何安装 github 包?

4

0 回答 0