Spoiler - globally.
Bower and grunt - development tools -
Bower is used for each frontend development procedure, so using it as a local package is simply wrong.
Grunt is divided into grunt and grunt-cli, the goal is to give you the opportunity to run grunts packaged in grunt-cli, while the code module is packaged in the ground and can be installed locally, but you can use it in others projects and install it locally several times.
In short, it is best to install the following packages around the world:
- development tools
- non-production packages
- general packages installed globally on your hosting server - for example, you can install an express installed worldwide and use it in all other projects, but you need to make sure that it is global on your server (mention this in your package.json )
source share