How to initialize a cloned DX component project / repo ?

We would like to use a remote/central Git repo (for example bitbucket) to manage our DX Component source code.
However I have not figured out how we could “initialize” a cloned project with, npx @pega/custom-dx-components@~24.2 init.

Scenario:

  • User A creates a DX project on his local PC with “npx @pega/custom-dx-components@~24.2 init”
  • User A create custom DX components, and “push” the project to a remote Git repo with “git push origin HEAD:”
  • User B would like to update existing components and/or create new.
  • User B clone the repo with “git clone https://remote-repo.git
  • User B types: “npm run list” which returns:
    custom-dx-components’ is not recognized as an internal or external command, operable program or batch file.
  • User B then try to initialize current project:
    npx @pega/custom-dx-components@~24.2 init (nothing happens)

the “npx @pega/custom-dx-components@~24.2 init” assumes we would like to create new project.
Is it possible to install the component builder once per workstation and reuse it in several DX components ?

Thx
Henrik

@HenrikW17281399

Solution
npm install