【问题标题】:Error while npm installing gulp 4npm 安装 gulp 4 时出错
【发布时间】:2017-09-05 18:19:22
【问题描述】:

我正在尝试使用以下命令安装 gulp 4:

sudo npm install git+https://git@github.com/gulpjs/gulp.git#4.0 --save-dev

但出现 Permission Denied 错误:

npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b 4.0             https://git@github.com/gulpjs/gulp.git         /Users/abhilashdk/.npm/_cacache/tmp/git-clone-52649803
npm ERR! /Users/abhilashdk/.npm/_cacache/tmp/git-clone-52649803/.git:     Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/abhilashdk/.npm/_logs/2017-09-05T18_05_21_216Z-debug.log

请告诉我错误是什么以及如何纠正它?

npm -v -> 5.4.0
node -v  -> 8.2.1

我正在使用 macOS Sierra。

谢谢

【问题讨论】:

    标签: npm gulp


    【解决方案1】:

    我能够使用以下命令安装 gulp 4:

    sudo npm install gulpjs/gulp.git#4.0 --save-dev
    

    我生成并添加了 ssh 密钥。在此之后出现以下错误:

    Permission denied (publickey).
    fatal: Could not read from remote repository.
    

    但无论如何安装了 gulp 4 :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-18
      • 1970-01-01
      • 2019-05-31
      相关资源
      最近更新 更多