Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lerna: not found #3825

Open
michielbdejong opened this issue Jan 13, 2025 · 2 comments
Open

lerna: not found #3825

michielbdejong opened this issue Jan 13, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@michielbdejong
Copy link

I opened this repo on GitPod (I noticed it has a .gitpod.yml file) and tried to build the single/script example from the browser package. It failed with lerna: not found. Is it trying to run lerna from bash instead of from npx?

HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
npm install && npm run build
}
gitpod /workspace/solid-client-authn-js (main) $  HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
> npm install && npm run build
> }
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead

> [email protected] postinstall
> npm run build


> [email protected] build
> lerna run build

(node:2231) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
lerna notice cli v8.1.9

   ✔  @inrupt/solid-client-authn-core:build (4s)
   ✔  @inrupt/oidc-client-ext:build (4s)
   ✔  @inrupt/solid-client-authn-node:build (4s)
   ✔  @inrupt/solid-client-authn-browser:build (10s)
   ✔  browser-in-bundle:build (9s)
   ✔  test-app:build (29s)

————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 Lerna (powered by Nx)   Successfully ran target build for 6 projects (47s)


added 1878 packages, and audited 1905 packages in 2m

276 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 10.9.0 -> 11.0.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.0.0
npm notice To update run: npm install -g [email protected]
npm notice

> [email protected] build
> lerna run build

(node:3233) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
lerna notice cli v8.1.9

   ✔  @inrupt/solid-client-authn-core:build (6s)
   ✔  @inrupt/oidc-client-ext:build (4s)
   ✔  @inrupt/solid-client-authn-node:build (4s)
   ✔  @inrupt/solid-client-authn-browser:build (12s)
   ✔  browser-in-bundle:build (11s)
   ✔  test-app:build (24s)

————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 Lerna (powered by Nx)   Successfully ran target build for 6 projects (45s)

gitpod /workspace/solid-client-authn-js (main) $ cd packages/browser/examples/single/script/
gitpod /workspace/solid-client-authn-js/packages/browser/examples/single/script (main) $ npm ci

> [email protected] postinstall
> npm run build


> [email protected] build
> lerna run build

sh: 1: lerna: not found
npm error code 127
npm error path /workspace/solid-client-authn-js
npm error command failed
npm error command sh -c npm run build
npm error A complete log of this run can be found in: /home/gitpod/.npm/_logs/2025-01-13T09_48_05_413Z-debug-0.log

I also tried to run npm ci in the repo root as the docs of the example say but still got the same error.

$ history
    1  npm install && npm run build
    2  cd packages/browser/examples/single/script/
    3  npm ci
    4  cd 
    5  cd /workspace/solid-client-authn-js/
    6  npm ci
    7  cd /workspace/solid-client-authn-js/
    8  npm ci
    9  cd packages/browser/examples/single/script/
   10  npm ci
   11  history
@michielbdejong michielbdejong added the bug Something isn't working label Jan 13, 2025
@michielbdejong
Copy link
Author

After that, npm run dev did work so it's not a blocker. But still confusing.

@NSeydoux
Copy link
Contributor

NSeydoux commented Jan 14, 2025

Hi @michielbdejong , thanks for reporting this. I'll have to look into it because that's an issue I have observed in the past, and resolved using the --ignore-scripts flag (i.e. running npm ci --ignore-scripts), but this shouldn't be required. The example apps are in the npm workspace if I recall correctly, so there's probably a misconfiguration there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants