If you are trying to include your node_modules in the client side, for example, jQuery, AngularJS or one of many many font libraries, you can npm install them as usual, but just to be sure of the sails you are editing your tasks/config/copy.js and add a new block, for example:
grunt.config.set('copy', { dev: { files: [{ expand:true, cwd: './node_modules/font-awesome/fonts', src: ['**/*'], dest: '.tmp/public/fonts' } } });
LESS can be @import ed, as usual, without copying. Other assets will need to be copied as described above. If you use the sails linker , be sure to also add your JS paths to tasks/pipeline.js (if necessary).
You can read more here: http://ash.zi.vc/sails/2016/02/02/including-client-side-node-modules-in-my-sails-application/
It is not clear how to synchronize npm modules with directories available on the Internet.
source share