1
我嘗試使用下面的命令來安裝吞掉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。
由於