npm安装克隆到裸存储库,致命:无法访问

时间:2016-08-10 11:34:38

标签: git npm npm-install package.json git-subrepo

我的Droplet服务器出了问题。我的 package.json 正在从git存储库获取包,如下所示:

"bootstrap": "git+http://git.pff.com.pl:8081/angular2-shared/Bootstrap4Eniro.git",

当我把它改为:

"bootstrap": "^4.0.0-alpha.2",

在安装npm之后, npm 仍在尝试克隆 http://git.pff.com.pl:8081/angular2-shared/Bootstrap4Eniro.git packagee.json 中不再存在的 ForkJoinTask.fork 我正在 NPM ERR

Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror http://git.pff.com.pl:8081/angular2-shared/Bootstrap4Eniro.git
Cloning into bare repository '/root/.npm/_git-remotes/git-http-git-pff-com-pl-8081-angular2-shared-Bootstrap4Eniro-git-b2c872db'...
fatal: unable to access 'http://git.pff.com.pl:8081/angular2-shared/Bootstrap4Eniro.git/': Could not resolve host: git.pff.com.pl

为什么会这样? 我已经清理了npm缓存,删除了.git,.npm但我仍然得到了 这个恼人的错误。 这是因为我使用的是 Droplet 吗?

我正在使用:

  • npm 3.9.6(关于2.xx同样的问题)
  • Ubuntu 14.04.4 LTS
  • git 1.9.1

更新&解

我聪明的朋友发现node_modules中的一个npm公共包仍然有

git+http://git.pff.com.pl:8081/angular2-shared/Bootstrap4Eniro.git"

在package.json“dependencies”中。将所有内容放入“devDependencies”之后就可以了......

0 个答案:

没有答案