41
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2018-11-27
Autoprefixer doesn’t support Node v4.8.2. Update it

というエラーに出くわした。
stackoverfolwに対処法が乗っていた。
https://stackoverflow.com/questions/52708521/autoprefixer-doesn-t-support-node-v4-8-2-update-it

こちらによればまずnodeを削除し、

# 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のrubyを使っている場合、こちらの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

# ...

というふうにsetupcurlしておく。

dockerで構築した環境でbootstrap入れたら急にこんなエラー出てびびった。

41
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
41
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?