WEB Tips デザイン・コーディング

node-sassをrebuildする際にHTTP error 404 Not Foundと出た

node-sassをrebuildする際にHTTP error 404 Not Foundと出た
Cannot download "https://github.com/sass/node-sass/releases/download/v3.4.2/win32-x64-48_binding.node":
HTTP error 404 Not Found

というエラー。
node.jsのバージョンはv6.9.1でしたがv5を使えばいいみたい
nodist(windows用のnode.jsのバージョン管理)がインストールされていたのでここからインストール

//インストールできるバージョンを確認
nodist dist
//バージョンを指定してインストール 今回は5.12.0
nodist 5.12.0
//インストールの確認
node -v

再度node-sass のrebuildを実行

npm rebuild node-sass

無事rebuildされました
404 not found on npm install sass (darwin-x64-47_binding.node) #1299
https://github.com/sass/node-sass/issues/1299

ちなみに以下のようなエラーが出た場合も、ライブラリが対応していないバージョンなのが原因のようです。

(node:26144) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.

node v5を指定したところ、表示されなくなりました。

今月キャンペーン特典があるサービス

  • ConoHa WING
    WINGパック36ヶ月で月額652円 55%OFF - 2023年3月31日(金)16:00まで
  • エックスサーバー
    月額費用が最大30%オフの693円&ドメイン永久無料、さらに移転代行も0円中 - 2023年4月21日(金)12:00まで
  • Xserverビジネス
    12ヶ月以上契約で初期費用無料、3ヶ月・6ヶ月で初期費用半額 - 2023年4月4日(火)12:00まで
  • カラフルボックス
    .jp取り扱いスタート。BOX2以上の月額費用が25%OFFのクーポンコード「SERVER25

-WEB Tips, デザイン・コーディング