inrupt / inrupt/solid-client-authn-js

lerna: not found

Open
#3,825 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
77
Forks
49
Avg merge
18h 20m
Merged PRs (30d)
32

Description

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/config-array@0.13.0: Use @eslint/config-array instead
npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead

> root@0.0.0 postinstall
> npm run build


> root@0.0.0 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 npm@11.0.0
npm notice

> root@0.0.0 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

> root@0.0.0 postinstall
> npm run build


> root@0.0.0 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The failure occurs in the root build script (lerna run build) reached by npm install or npm ci; the example is under packages/browser/examples/single/script/, with setup guidance in its docs and environment details in .gitpod.yml. Reproduce the setup from the repository root and the example directory, then verify it completes without lerna: not found.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.