Skip to main content

Yarn - Yet Another Package Manager for Javascript

Yarn - An open source package manager for Javascript

Yarn is an open source package manager for Javascript, developed by Facebook. Yarn on github.

Install yarn using npm

npm install -g yarn
PS C:\Users\Tuyen> npm config get prefix                                  
f:\nodejs\node_modules\npm
PS C:\Users\Tuyen> npm install -g yarn                                    
f:\nodejs\node_modules\npm\yarn -> f:\nodejs\node_modules\npm\node_modules\yarn\bin\yarn.js
f:\nodejs\node_modules\npm\yarnpkg -> f:\nodejs\node_modules\npm\node_modules\yarn\bin\yarn.js
+ yarn@1.21.1
added 1 package in 2.4s
PS C:\Users\Tuyen> yarn --version                                         
1.21.1
PS C:\Users\Tuyen>                  

Get started with Yarn

yarn init -y
PS F:\Projects\github\lthwyarn> yarn init -y                              
yarn init v1.21.1
warning The yes flag has been set. This will automatically answer yes to all questions, which may have security implications.
success Saved package.json
Done in 0.32s.
PS F:\Projects\github\lthwyarn> ls                                        

    Directory: F:\Projects\github\lthwyarn

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        12/31/2019 10:01 AM            142 package.json

PS F:\Projects\github\lthwyarn> cat .\package.json                        {
  "name": "lthwyarn",
  "version": "1.0.0",
  "main": "index.js",
  "author": "Firstname Lastname <user@gmail.com>",
  "license": "MIT"
}
PS F:\Projects\github\lthwyarn>          
yarn add : 
yarn add eslint --dev : 

Related articles

npm - Node Package Manager

Popular posts from this blog

hmailserver: Notes from the field

hmailserver is one of free open source mail servers running on Microsoft Windows operating system.

stegseek: Notes

StegCracker has been retired following the release of StegSeek, which will blast through the rockyou.txt wordlist within 1.9 second as opposed to StegCracker which takes ~5 hours.

VMware ESXi host loads ipmi_si_drv too long

Workaround: remove ipmi_si_drv esxcli software vib remove --dry-run --vibname ipmi-ipmi-si-drv esxcli software vib remove --vibname ipmi-ipmi-si-drv ~ # esxcli software vib remove --dry-run --vibname ipmi-ipmi-si-drv Removal Result    Message: Dryrun only, host not changed. The following installers will be applied: [BootBankInstaller]    Reboot Required: true    VIBs Installed:    VIBs Removed: VMware_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.550.0.0.1331820    VIBs Skipped: ~ # ~ # esxcli software vib remove --vibname ipmi-ipmi-si-drv Removal Result    Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.    Reboot Required: true    VIBs Installed:    VIBs Removed: VMware_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.550.0.0.1331820    VIBs Skipped: ~ #