概述
在执行sudo npm install -g react-native-cli 命令时候,报错
npmERR! Darwin 15.5.0
npmERR!argv "/usr/local/Cellar/node/5.7.0/bin/node" "/usr/local/bin/npm" "install" "-g" "react-native-cli"
npmERR!node v5.7.0
npmERR!npm v3.6.0
npmERR!path /usr/local/lib/node_modules/react-native-cli
npmERR!code ENOTEMPTY
npmERR!errno -66
npmERR!syscall rename
npmERR! ENOTEMPTY: directory not empty, rename '/usr/local/lib/node_modules/react-native-cli' -> '/usr/local/lib/node_modules/.react-native-cli.DELETE'
npmERR!
npmERR! If you need help, you may report this error at:
npmERR! <https://github.com/npm/npm/issues>
npmERR! Please include the following file with any support request:
npmERR! /Users/xxx/Documents/reactnative/sourcecode/npm-debug.log
最后
以上就是鲜艳白猫为你收集整理的解决sudo npm install -g react-native-cli 报错问题的全部内容,希望文章能够帮你解决解决sudo npm install -g react-native-cli 报错问题所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复