Heroku not installing certain Node modules

I’m trying deploy a Lerna app on Heroku, but the platform isn’t installing the actual Lerna package in the node_modules no matter what I do. I’ve gotten to the point where I have accessed the app files directly and tried running npm install [email protected] on the server itself. The result is that it installs a number of packages and says that it has added Lerna as well, but actually hasn’t.

~ $ npm install [email protected]
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN [email protected] requires a peer of @swc-node/register@^1.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @swc/core@^1.2.173 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
added 16 packages from 7 contributors and audited 1081 packages in 26.529s
found 12 vulnerabilities (2 low, 2 moderate, 6 high, 2 critical)
  run `npm audit fix` to fix them, or `npm audit` for details
~ $ cd node_modules/
~/node_modules $ ls
@pnpm  cross-spawn  get-stream  human-signals  is-stream  isexe  merge-stream  mimic-fn  npm-run-path  onetime  path-key  shebang-command  shebang-regex  signal-exit  strip-final-newline  which
~/node_modules $ cd lerna
bash: cd: lerna: No such file or directory`

What could I be missing?