Upgrading Bootstrap NPM package in edx-platform

I am wanting to upgrade the version of Bootstrap from 4.0.0 to 4.5 within edx-platform on the Lilac release. There are a handful of Bootstrap classes and features that don’t exist in version 4.0.0 that is installed with Lilac.

Is it ill-advised to upgrade the Bootstrap NPM package? If it is relatively safe, would I just run the npm commands while logged into the edx-platform? Would I need to run them as the edxapp user (instead of the ubuntu user) or source the virtual environment before running any of the upgrade commands?

I know I could just add new CSS rules in the SASS files of my theme, but I’d prefer to take this approach if it doesn’t open a can of worms.