How to install a plugin from NPM

Hello to all, I need to install angular-pixlive in my project.
From the docs the command to install this directive is

ionic add vidinoti/angular-pixlive

but if I try it Ionic CLI said to me that this command is deprecated and that I have to use NPM instead.
So I used

npm install angular-pixlive

and NPM downloads and installs the plugin in the node_modules directory.
From here I can’t include files in my project, so (for now) I have copied files in my project directory and included them with the script tag.
I think that may be a better way to include an NPM module, but I can’t find infos about that in the docs… can anyone tell me which is the right way to do that?

Thanks in advance.

from your node module include the js as
<script href=“node_modules/directory/js/filename.js”> </script>
should work. It worked for me as wll

For me not works, I have this error in the js console

Failed to load resource: net::ERR_FILE_NOT_FOUND

Maybe its just the path to file that is wrong? Are you sure its importing the file?