install yarn on DragonflyBSD

@asya_aoi1049 on Tue Jan 08 2019
1.2 min


What’s is yarn?

Yarn is pacakge manager instead of npm. npm is a package manager too. yarn is better than npm becuse of cacheing and fast install.

Install yarn.

Yarn installation is bellow.

$ cd /usr/dport/www/yarn
$ sudo make 
$ sudo make install && sudo make clean

rehash on zsh.

Be activate the PATH.

$ rehash 

Use yarn

For example, install vue-cli in yarn’s global.

$ yarn global add vue-cli