LoginSignup
0
0

More than 1 year has passed since last update.

npm run compile:scssでエラー

Posted at

背景

SalesforceのCommerce CloudにStripeを導入する過程(下記①)で、
下記コマンドを打つというものがあったが、ここでエラーにはまった。

npm run compile:scss

やったこと

  • 当初はNode推奨版のv16.15.1をインストールしていた
  • その後v8.11.1にダウングレードして試したもののうまくいかない
  • 下記②の記事を参考にし、Nodeのバージョンをv12.16.0にアップグレード
  • その上で下記③の記事を参考に、以下の「node_modulesを消す、npmのキャッシュクリア、node_modulesを入れ直す」というnpmのエラーでは鉄板(?)らしい対処法を試した
rm -rf node_modules && rm package-lock.json && npm cache clear --force && npm cache clean --force && npm i
  • その後以下コマンドを再度試したら、うまくいった
npm run compile:scss

参考記事

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