LoginSignup
0
0

More than 1 year has passed since last update.

npx gulp watchでError: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (93)

Posted at

npx gulp watchを実行すると

$ npx gulp watch
Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
以下略

エラー文の通り、https://github.com/sass/node-sass/releases/tag/v4.14.1にアクセスして確認すると、下の表の通り。

Supported Environments

OS Architecture Node
Windows x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
OSX x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
Linux x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8*, 9, 10^, 11^, 12^, 13^, 14*^
Alpine Linux x64 6, 8, 10, 11, 12, 13, 14
FreeBSD i386 amd64 10, 12, 13

サポートはNodeのバージョン14までになっている。

バージョン確認

$ node --version
v16.4.2

手元の環境はバージョン16になっていました。

Nodeアンインストール

brew uninstall node
Error: Refusing to uninstall /usr/local/Cellar/node/16.4.0
because it is required by yarn, which is currently installed.
You can override this and force removal with:
  brew uninstall --ignore-dependencies node
$ brew uninstall --ignore-dependencies node
Uninstalling /usr/local/Cellar/node/16.4.0... (2,459 files, 48.1MB)

エラーが出ましたが指示に従いつつアンインストール成功

Nodeのインストール

nvm install --lts --latest-npm
Installing latest LTS version.
Downloading and installing node v14.17.3...
Downloading https://nodejs.org/dist/v14.17.3/node-v14.17.3-darwin-x64.tar.xz...
######################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v14.17.3 (npm v6.14.13)
以下略

サポートされている最新のNodeをインストールできました。

rebuildしてgulp watch

$npm rebuild node-sass
rebuilt dependencies successfully
$ npx gulp watch
[15:25:21] Using gulpfile ~/hoge/gulpfile.js
[15:25:21] Starting 'watch'...
0
0
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
0
0