Pre-requisites

Installing required pre-requisites

NodeJS

Install latest version of NodeJS. The tested version at the time of writing this document is 16.18.1

PNPM

PNPM is a fast, efficient package manager, 2x faster than NPM.

The latest version of PNPM is 7.x but it has an issue with linking packages using pnpm link useful for local development of @logosphere libraries. Therefore it's better to stick to the latest 6.x version. The issuearrow-up-right is logged to track this and once fixed, we should be switching to 7.x because 6.x is becoming unsupported.

Turn on peer dependencies auto-install:

NX

NX is a next generation build system with first class monorepo support and powerful integrations.

PNX Alias

Try running nx command from the workspace directory and it will give you warning:

As it says in the tip, create a alias in your .bash_profile or .zshrc (MacOs only) depending on what shell you are using

Source it

Try it

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

Docker

Install latest version of Docker Desktop, which should include docker-compose

Last updated