Hi @rhomE and welcome,
You can’t use NPM modules in the PlayCanvas editor. But you can load ES6 bundled modules, here is one way to do this: