美文网首页
配置rn 安装node.js 报错

配置rn 安装node.js 报错

作者: returnzyf | 来源:发表于2016-09-28 12:58 被阅读26次

今天配置RN环境,安装node.js 报错 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- utils/popen (LoadError)
stackoverflow上有回答,说是要更新:

The problem mainly occurs after updating OS X to El Capitan (OS X 10.11). This is mainly because of file permission issues with file El Capitan’s new SIP process. Try changing permissions of/usr/local directory.
$ sudo chown -R $(whoami):admin /usr/local

If it still doesn't work, use following steps and everything will be fine. This may be because homebrew is not updated.

  1. open terminal
  2. $ cd /usr/local
  3. $ git reset --hard
  4. $ git clean -df
  5. $ brew update

相关文章

网友评论

      本文标题:配置rn 安装node.js 报错

      本文链接:https://www.haomeiwen.com/subject/zpihyttx.html