/home/sse/.npm/_cacache/tmp/git-clone-dee84dd4/.git: Permission denied
报错解决办法
使用node管理器安装nodejs和npm,
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