1 Tips and Tricks
Jonathan Niles edited this page 2017-09-17 14:20:48 +01:00

Fixing "Potentially unhandled rejection [2]: bootstrap.less wasn't found"

This error means that executed npm build before bower install. Unfortunately, npm build will have created a directory in the vendor folder, preventing bower from installing bootstrap. To back out of this situation, completely remove the bootstrap directory from the vendor folder and re-run bower.

# clean up the corrupted bootstrap directory
rm -rf client/vendor/bootstrap

# install bootstrap
./node_modules/.bin/bower install

# build
npm run build

The build should now be clean.