Ory Elements is a component library that makes building login, registration and account pages for Ory a breeze. Check out the components library on Chromatic https://www.chromatic.com/library?appId=63b58e306cfd32348fa48d50
The latest version of Lerna does not work correctly with npx causing it to fail .
> npx lerna clean --yes
npm WARN exec The following package was not found and will be installed: lerna@6.5.1
npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
node:internal/modules/cjs/loader:1024
throw err;
^
Error: Cannot find module 'nx/presets/npm.json'
Require stack:
- /home/runner/.npm/_npx/d5cad42883f80c04/node_modules/nx/src/config/workspaces.js
- /home/runner/.npm/_npx/d5cad42883f80c04/node_modules/nx/src/devkit-exports.js
- /home/runner/.npm/_npx/d5cad42883f80c04/node_modules/@nrwl/devkit/index.js
- /home/runner/.npm/_npx/d5cad42883f80c04/node_modules/lerna/dist/cli.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
at Function.resolve (node:internal/modules/cjs/helpers:[11](https://github.com/ory/elements/actions/runs/4304114440/jobs/7504677314#step:4:12)4:19)
at Workspaces.readNxJson (/home/runner/.npm/_npx/d5cad42883f80c04/node_modules/nx/src/config/workspaces.js:145:52)
at readNxJson (/home/runner/.npm/_npx/d5cad42883f80c04/node_modules/nx/src/config/configuration.js:7:72)
at Object.<anonymous> (/home/runner/.npm/_npx/d5cad42883f80c04/node_modules/nx/src/daemon/client/client.js:288:72)
at Module._compile (node:internal/modules/cjs/loader:1191:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:[12](https://github.com/ory/elements/actions/runs/4304114440/jobs/7504677314#step:4:13)45:10)
at Module.load (node:internal/modules/cjs/loader:1069:32)
at Function.Module._load (node:internal/modules/cjs/loader:904:12)
at Module.require (node:internal/modules/cjs/loader:1093:[19](https://github.com/ory/elements/actions/runs/4304114440/jobs/7504677314#step:4:20)) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/runner/.npm/_npx/d5cad4[28](https://github.com/ory/elements/actions/runs/4304114440/jobs/7504677314#step:4:29)83f80c04/node_modules/nx/src/config/workspaces.js',
'/home/runner/.npm/_npx/d5cad42883f80c04/node_modules/nx/src/devkit-exports.js',
'/home/runner/.npm/_npx/d5cad42883f80c04/node_modules/@nrwl/devkit/index.js',
'/home/runner/.npm/_npx/d5cad42883f80c04/node_modules/lerna/dist/cli.js'
]
}
[ ] I confirm that this pull request does not address a security vulnerability.
If this pull request addresses a security vulnerability,
I confirm that I got green light (please contact security@ory.sh) from the maintainers to push the changes.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have added necessary documentation within the code base (if appropriate).
The latest version of Lerna does not work correctly with
npx
causing it to fail .Related Issue or Design Document
Checklist
Further comments