Installing required pre-requisites
Install latest version of NodeJS. The tested version at the time of writing this document is
PNPM is a fast, efficient package manager, 2x faster than NPM.
The latest version of PNPM is
7.xbut it has an issue with linking packages using
pnpm linkuseful for local development of @logosphere libraries. Therefore it's better to stick to the latest
6.xversion. The issue is logged to track this and once fixed, we should be switching to
6.xis becoming unsupported.
Turn on peer dependencies auto-install:
pnpm config set auto-install-peers true
NX is a next generation build system with first class monorepo support and powerful integrations.
nxcommand from the workspace directory and it will give you warning:
NX Running global Nx CLI with PNPM may have issues.
Prefer to use "pnpm" (https://pnpm.io/cli/exec)) to execute commands in this workspace.
TIP create a shortcut such as: alias pnx="pnpm nx --"
As it says in the tip, create a alias in your
.zshrc(MacOs only) depending on what shell you are using
alias pnx="pnpm nx"
$ source ~/.zshrc
$ pnx --version
Now the warning about using pnpm should be gone.
From now on, when following instructions from Nx documentation, whenever it says to use nx use pnx alias instead
Install latest version of Docker Desktop, which should include