【发布时间】: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。
谢谢
【问题讨论】: