/home/sse/.npm/_cacache/tmp/git-
2018-01-25 本文已影响964人
Simth
/home/sse/.npm/_cacache/tmp/git-clone-dee84dd4/.git: Permission denied
报错解决办法
使用node管理器安装nodejs和npm,
![](https://img.haomeiwen.com/i1792643/728ff1d074a88b28.png)
nvm安装办法
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
或者
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
然后设置环境变量
The script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).
export NVM_DIR="$HOME/.nvm"
清除缓存
npm cache clear --force