Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8829

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

$
0
0

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もサポートするようになった


Viewing all articles
Browse latest Browse all 8829

Trending Articles