运行命令后出现错误:
npm i gulp@"gulpjs/gulp.git#6d71a65"
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/gulpjs/gulp.git /root/.npm/_cacache/tmp/git-clone-4b7078de
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-4b7078de': ???????? ? ???????
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-06-14T11_27_49_059Z-debug.log
从官方https://docs.npmjs.com/getting-started/fixing-npm-permissions howto尝试“选项一”,重新安装新版本节点,也尝试“选项二”但是nvm抛出错误无法与
一起使用npm config set prefix '~/.npm-global'
所以没有办法。
任何有同样问题的面孔?