新手问题 sassc Unable to allocate memory: std::bad_alloc?

kuyenda · April 23, 2020 · Last by dsh0416 replied at April 23, 2020 · 2502 hits
ruby '2.5.3'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.3'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use SCSS for stylesheets
gem 'sassc-rails', '2.1.0'
<%= stylesheet_link_tag 'application', 'data-turbolinks-track': 'reload' %>

昨天想从 sass-rails 换成 sassc-rails precompile 内存占用 95%,请问这是什么问题?

std::bad_alloc 是 C++ 内存申请失败的异常吧。申请失败的常见原因应该是... 你机器上内存已经被吃爆掉了,分配不出可用内存了?

You need to Sign in before reply, if you don't have an account, please Sign up first.