#6856·reaction

The CLI does not work - dependencies are not published to npm

Author: marekpwCreated Jun 19, 2023Updated Oct 31, 2024
Labelsbugneeds triage

Issue Description

Running reaction create-project api <apiPath> and then going into <apiPath> and running npm install fails with the following error:

bash
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @reactioncommerce/[email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

This is because the dependencies in package.json are not published to npm. For example, the latest version of api-core on npmjs is 2.0.1.

Steps to Reproduce

  1. Run a clean install of npm i -g reaction-cli
  2. Run reaction create-project api api
  3. cd api && npm install
  4. Observe error

Source: reactioncommerce/reaction