LoginSignup
1
0

More than 3 years have passed since last update.

Phoenixで Error: Node Sass does not yet support your current environmentになった話

Last updated at Posted at 2021-03-27

先日phoenixでmix phx.server したらこんなエラーがでた

ERROR in ./css/app.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
......
......
......

急にこんなエラーが出たのでびっくりした...
nodeのバージョンがサポートされてない??

心当たり

強いて言えば、この間vueの勉強をしようとしてnode.jsを入れた。
バージョンを見てみる。

node -v
15.x.x

おそらくバージョンが高すぎてだめなのだろう。
ダウングレードするしかないな。

どうせならバージョン管理したいな

この記事良さそう

この記事通りにnodenvを入れます。

次に

nodenv install 14.x.x
nodenv rehash

それからそのプロジェクト内で

nodenv local 14.x.x

最後に

mix phx.server

すれば上手くいくと思います。

1
0
1

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
1
0