Yarn is a package manager
It aims to resolve two problems:
Most yarn commands are similar to npm equivalents and it is fine to use the npm versions instead
See: https://yarnpkg.com/en/docs/usage
for instance
yarn add uglify-js
## deprecated
yarn add global uglify-js
Since Node version 16, the package manager is managed by Node and the binary is in the Node HOME.
The old directory location were:
Go to the global package.json file and