Is it possible to use NPM to manage the same dependencies for backend and client scripts? I am creating a node.js application with an expression. When all dependencies are installed, these scripts are installed in the node_modules folder. Can I somehow say that it should look in this folder for javascript files for the client? For instance. when the client requests the underscore.js file, it should return the file from the installed module. Or can you connect to the npm installation procedure so that some files can be automatically copied to the application’s shared folder?
source
share