dub install package globally

Preetpal preetpal.sohal at gmail.com
Thu Oct 6 07:06:52 UTC 2022


Is there a way to install packages "globally" using dub?

For example, when using the node package manager (NPM) you can 
install a package "globally" (so it is available for the current 
user from the command line) using the `--global` flag as follows:

`npm install --global typescript`

This would make `tsc` command (which invokes the TypeScript 
compiler) available from the command line outside of any project. 
This would be convenient for packages like dfmt.


More information about the Digitalmars-d-learn mailing list