Pre-requisites
Installing required pre-requisites
Install latest version of NodeJS. The tested version at the time of writing this document is
16.18.1
PNPM is a fast, efficient package manager, 2x faster than NPM.
npm install -g [email protected]
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 issue 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:
pnpm config set auto-install-peers true
NX is a next generation build system with first class monorepo support and powerful integrations.
pnpm install -g [email protected]
Try running
nx
command 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
.bash_profile
or .zshrc
(MacOs only) depending on what shell you are usingalias pnx="pnpm nx"
Source it
$ source ~/.zshrc
Try it
$ 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
docker-compose
Until
@logosphere
libraries are open sourced, you will need to have an account in https://www.npmjs.com/ and contact Ikigai Technologies team [email protected] to provide you with access. Then add npm
token to .npmrc
file in form like below//registry.npmjs.org/:_authToken=npm_YOURNMPTOKENHERE
Last modified 6mo ago