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?

PR: JISOU | Reactプログラミングコーチング
AIで不安を感じたら!    JISOUメンバー募集中

【node-sass】stack Error: `gyp` failed with exit code: 1 〜 ModuleNotFoundError: No module named 'distutils'

2
Posted at

はじめに

  • 教材進めてて npm i node-sass してて遭遇

問題

  • sassのコンパイルをしたいが必要なパッケージが入らない
  • gypなのでグローバルなpythonをアップデートしないといけない?それは嫌だ

解決

  • node-sassは非推奨のようだ
  • 推奨されるsassパッケージでもsassのコンパイルには問題ない
  • インストールできて解決

終わりに

  • 最近サプライチェーン攻撃も怖いので古い教材やる時は、ライブラリ新しいのないかみた方がいいかも。最低限ローカルでnpmのセキュリティの設定はしているので大丈夫だとは思うが
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?