This is convenient for the first time you install something, but it will try to reinstall the dependency every time you add something, without checking to see if you already have it
If a user installs multiple components at a time, it will ask for the npm install once for each. Two solutions
These install calls could be hoisted together to let the user approve all at once, with the downside that the user loses fine-grained control over which modules they want to install
If Sly stops asking for modules that are already installed, then this issue will go away for cases where all the components request the same module dependencies. But if they all have different ones, the user will have to accept each one by one
A registry can provide a list of dependencies and devDependencies that will be installed from npm
This is convenient for the first time you install something, but it will try to reinstall the dependency every time you add something, without checking to see if you already have it