Table of Contents

Javascript - Yarn

About

Yarn is a package manager

It aims to resolve two problems:

Yarn command

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

Global Package

Since Node version 16, the package manager is managed by Node and the binary is in the Node HOME.

The old directory location were:

Configuration

Support

error Package “xxx” refers to a non-existing file '“yyyy”'.

Go to the global package.json file and