Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alessandrostein/3e03793dedbad3f069cb26f27d2e1df9 to your computer and use it in GitHub Desktop.
Save alessandrostein/3e03793dedbad3f069cb26f27d2e1df9 to your computer and use it in GitHub Desktop.
Rails/Heroku - How to fix error node_modules/node-sass: Command failed.
  • Move to the trash these files: node_module folder, package-lock.json and yarn.lock;
  • In your package.json upgrade webpacker to 5.3.0;
  • Run yarn install in your console

That's it!

In case you don't have the start script in your package.json, you can add:

"scripts": {
  "start": "webpack-dev-server"
}
```

Env: Rails 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment