git - 基础项目创建失败并显示 npm ERR! debian 8.5.0 上的 git rev-list

标签 git npm debian zurb-foundation-6

我几乎花了两三个小时来搜索我的屁股。 但要么我太笨找不到解决方案,要么目前还没有。

第一件事:我不是 Linux 世界的专家,但这是我得到的。

作为 VirtualBox 镜像的裸 debian 8.5.0 安装:

我安装了 sudo、VBoxGuestAdditions、nodejs (v6.2.1)、git 和 foundation-cli(v6)。

所以,现在如果我尝试使用“foundation new”创建一个新的基础项目 并选择“ZURB-template”选项,安装失败并出现以下错误。

npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git clone --template=/home/dev/.npm/_git-remotes/_templates --mirror git@github.com:gulpjs/gulp-cli.git /home/dev/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: Cloning into bare repository '/home/dev/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3'...
npm ERR! git clone --template=/home/dev/.npm/_git-remotes/_templates --mirror git@github.com:gulpjs/gulp-cli.git /home/dev/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: Permission denied (publickey).
npm ERR! git clone --template=/home/dev/.npm/_git-remotes/_templates --mirror git@github.com:gulpjs/gulp-cli.git /home/dev/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: fatal: Could not read from remote repository.
npm ERR! git clone --template=/home/dev/.npm/_git-remotes/_templates --mirror git@github.com:gulpjs/gulp-cli.git /home/dev/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3:
npm ERR! git clone --template=/home/dev/.npm/_git-remotes/_templates --mirror git@github.com:gulpjs/gulp-cli.git /home/dev/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: Please make sure you have the correct access rights
npm ERR! git clone --template=/home/dev/.npm/_git-remotes/_templates --mirror git@github.com:gulpjs/gulp-cli.git /home/dev/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: and the repository exists.

也许我在这里遗漏了一些重要的东西,所以即使是最简单的建议也不要犹豫。如果我没有对此进行正确的搜索,或者即使它就在我面前也愚蠢地得到了解决方案,那就对不起 :D

/编辑

小更新: 我在我的计算机上发现了一个基于 debian 的 bunsenlabs vm(以前的 crunchbang)的安装。在这里,基础项目的安装和创建就像魅力一样。

所以我想,让我们用 bunsenlabs 安装一个新的虚拟机,然后再试一次。 因为它适用于旧安装,所以它应该适用于新安装,对吗? 错误...我无法解决这个问题。我很确定我没有对旧安装做任何特别的事情......

最佳答案

我们也遇到了这个问题,并提出了与 Jeff 相同的解决方案。如果经验较少的人正在寻找更多方向,请按以下步骤进行:

  1. 编辑 package.json 文件,在 devDependencies 下将 "gulp": "gulpjs/gulp#4.0"更改为 "gulp": "gulpjs/gulp"和 "gulp-cli": "gulpjs/gulp-cli#4.0 ”到“gulp-cli”:“gulpjs/gulp-cli”(删除#4.0 似乎有帮助)
  2. 运行 npm 安装
  3. 如果需要运行 npm install graceful-fs(在 4.x 分支上)
  4. 运行 npm install –g "gulpjs/gulp#4.0”
  5. 运行 npm install "gulpjs/gulp#4.0”(以确保您的本地环境将使用 4.0 分支)
  6. Gulp –v(确保您的本地环境使用的是 4.x 分支)
  7. 运行 gem install sass
  8. 运行 bower 安装
  9. 运行 npm rebuild node-sass
  10. 运行 npm 启动
  11. 必要时使用 sudo

干杯

关于git - 基础项目创建失败并显示 npm ERR! debian 8.5.0 上的 git rev-list,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37829902/

相关文章:

ruby-on-rails - 将文件排除在 Capistrano 部署之外,同时仍在 Git 的版本控制之下

git - 如何设置 .gitmodules 以便贡献者不必 fork 子模块?

Git:如何维护永久并行分支

node.js - phantomjs版本好像没有更新

linux - Debian安装TP-LINK TL-WN723N无线usb

compiler-errors - indy-10.2.0.1/fpc/IdStackUnix.pas(610,19)错误: Identifier not found “socket”

git push 致命的 : unable to create thread: Resource temporarily unavailable

ubuntu - 找不到模块 '@ionic-native/Camera/ngx'

node.js - npm 安装后 Node 找不到依赖项

debian - 在 Debian Squeeze 上调用 javac 时出错