您的位置:首页 > 编程语言 > Ruby

mac安装therubyracer出错

2017-01-09 16:49 246 查看
执行
bundle install
后报错如下:

An error occurred while installing libv8 (3.16.14.17), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.17'` succeeds before bundling.


于是,执行
gem install libv8 -v '3.16.14.17'
,还是报错:

ERROR:  Error installing libv8:
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError)


解决方案:

执行
gem env
,找到
GEM PATHS
,删除
cache
文件夹。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  gem