2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【React】Stackblitzでnode-sassをインストールしようとしたらエラーが出た

Posted at

はじめに

StackBlitzというWeb上の統合開発環境を使ってReactの学習中、コンポーネントにCSSを当てるため、「node-sass」というライブラリをインストールしようとしました。

問題

インストールが出来たと思い、Webページをリロードしたところ、こんなエラー表記が出ました。

image.png

解決方法

コンソールで

npm install node-sass

とコマンドを叩くのではなく、

npm install sass

と叩いたらインストールが出来て、エラー表記が無くなりました。

おわりに

現在は「node-sass」は非推奨になっているようです。

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?