https://nodejs.org/en/download/
Install nodejs (version 8)
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install nodejs
To install yarn follow the instruction provided on https://yarnpkg.com/en/docs/install
brew install yarn --without-node
$ sudo npm install -g yarn
To enable Yarn for Angular CLI, run the following command inside root directory:
ng set packageManager=yarn
To install dependencies run the following command inside root directory:
yarn
or yarn install
- Yarn parallelizes operations to maximize resource utilization so install times are faster than ever.
- Offline cache: package installation using Yarn, it places the package on your disk. During the next install, this package will be used instead of sending an HTTP request to get the tarball from the registry.
- Deterministic Installs: Yarn uses lockfiles (yarn.lock) and a deterministic install algorithm. We can say goodbye to the "but it works on my machine" bugs.
yarn
# Install all dependencies from package.jsonyarn install
# Alias for yarnyarn add [package]
# Install npm packageyarn upgrade [package]
# Upgrade npm packageyarn remove [package]
# Uninstall npm package
To read more about yarn read https://yarnpkg.com/en/
https://github.com/praveen-garg/FogLAMP.git
$ yarn install