Autoprefixer不支持Node v4.8.2版本,请进行更新

Autoprefixer doesn’t support Node v4.8.2. Update it

遇到了这个错误。
在 stackoverflow 上找到了解决方法。
https://stackoverflow.com/questions/52708521/autoprefixer-doesn-t-support-node-v4-8-2-update-it

根据这里的情况,首先需要删除节点。

# Using apt on Debian or Ubuntu based Linux distributions
sudo apt remove nodejs

写下了重新放置的要求。

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

如果要替代apt部分,则可能需要使用yum或其他软件包管理工具。

似乎还可以尝试添加名为mini-racer的gem来修复。

如果在使用Docker的情况下,根据这个问题(issue)的说法,

FROM ruby:2.6-rc

# https://github.com/nodesource/distributions#installation-instructions
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
        && apt-get install -y nodejs

# ...

以这样的方式提前设置curl。

在使用Docker构建的环境中安装了Bootstrap后,突然出现了这个错误,吓了一跳。