Problem
Sometimes switching front-end projects can keep work interesting and fun. Other times, it can lead to high blood pressure and an urge to throw your mouse in the bin. This troubleshooting article is meant to save the lives of all those mice.
Solution
Try deleting your 'node_modules' and 'bower_components' folders from the project, and run the following command again: (sometimes packages can get corrupted due to switching versions and branches)
npm install && bower install
- Check your version of node. Some projects include dependencies/packages that rely on a certain version of node. If your current version is too old, or too new, it can cause errors during your build.
- If you are receiving errors because of a missing package or missing command, installing it locally in the project may not remedy the error. In this case try installing the package globally via multiple channels (process of elimination). Ex. "yarn add global...", "npm install -g...", "bower install -g..."
Related articles