LoginSignup
1
0

More than 3 years have passed since last update.

node 10 -> 12 にバージョンアップしたら、npm installでnode-sass@4.11.0がエラーになる

Last updated at Posted at 2020-01-11

Unsupported for node-sass@4.11.0

2019年10月に、node v12はついにLTSになりました:clap::clap::clap:

それで、既存のシステムのnodeをバージョンアップしてみたところ、↓のようなエラーになりました!

    Cannot download "https://github.com/sass/node-sass/releases/download/v4.11.0/linux_musl-x64-72_binding.node":

    HTTP error 404 Not Found

    Hint: If github.com is not accessible in your location
          try setting a proxy via HTTP_PROXY, e.g.

          export HTTP_PROXY=http://example.com:1234

    or configure npm proxy via

          npm config set proxy http://example.com:8080

v12はサポートしなくなったらしいので、node-sass@4.12.0にアップデートする必要があるようです。

npm install node-sass@4.12.0

これでエラーが消えます。

node v12 はどこが新しくなったのか

  • JavaScriptエンジンであるV8はNode.js v10のv6.8からv12のv7.4にバージョンアップした、そのためパフォーマンスが大きく変わりました

    • Asyncスタックトレース
    • JavaScriptパース高速化
    • Await高速化
    • 引数ミスマッチ高速化
  • ClassにPrivateFieldsを定義できる
    #でプライベートフィールドを定義する。(例:#name
    この#nameはClass内にしか使えない。

  • HTTP parserはllhttpに変わりました

  • TLS1.3もサポートするようになった

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