错误而NPM安装一饮而尽4
问题描述:
我尝试使用下面的命令来安装吞掉4:错误而NPM安装一饮而尽4
sudo npm install git+https://[email protected]/gulpjs/gulp.git#4.0 --save-dev
但要拒绝权限错误:
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b 4.0 https://[email protected]/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。
由于
答
我能够使用下面的命令来安装吞4:
sudo npm install gulpjs/gulp.git#4.0 --save-dev
我生成并添加ssh密钥。在这之后得到了以下错误:
Permission denied (publickey).
fatal: Could not read from remote repository.
但无论如何吞掉4安装:)