[英]I am not behind a proxy but still getting error while installing packages using npm
[英]I am getting npm error while installing react navigation. Do anyone know about this issue?
安装 react-navigation 时出现 npm 错误。 有人知道这个问题吗?
ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/react-navigation/react-native-tab-view.git /Users/nakul/.npm/_cacache/tmp/git-clone-818101c2
npm ERR! /Users/nakul/.npm/_cacache/tmp/git-clone-818101c2/.git: Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/nakul/.npm/_logs/2018-04-14T10_46_28_136Z-debug.log
尝试chmod -R 777 ~/.npm
然后重新安装。
或rm -rf ~/.npm
并重新安装。 ~/.npm
是一个临时目录,可以安全地删除。 npm 将使用正确的权限重新创建此目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.