/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,


图片.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 
上一篇 下一篇

猜你喜欢

热点阅读