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

"pnpm install" doesn't work #301

Closed
ersek-huba opened this issue Apr 19, 2024 · 9 comments
Closed

"pnpm install" doesn't work #301

ersek-huba opened this issue Apr 19, 2024 · 9 comments

Comments

@ersek-huba
Copy link

When I'm trying to install all the dependencies, via 'pnpm install', I get the following output:

Scope: all 5 workspace projects
Lockfile is up to date, resolution step is skipped
 WARN  Broken lockfile: no entry for 'uWebSockets.js@https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/105d9ec47126cb82e4a6f3a08aa2ac78b4bb14f1' in pnpm-lock.yaml
 ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY  The lockfile is broken! Resolution step will be performed to fix it.
server                                   |  WARN  Could not find preferred package uWebSockets.js@https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/105d9ec47126cb82e4a6f3a08aa2ac78b4bb14f1 in lockfile
Downloading pixi.js@8.0.5: 9.27 MB/9.27 MB, done
/mnt/server:
 ENOENT  Command failed with ENOENT: git ls-remote --refs https://github.com/uNetworking/uWebSockets.js.git v20.41.0
spawn git ENOENT

This error happened while installing a direct dependency of /mnt/server

pnpm: Command failed with ENOENT: git ls-remote --refs https://github.com/uNetworking/uWebSockets.js.git v20.41.0
spawn git ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Progress: resolved 39, reused 39, downloaded 0, added 0

How can I fix it? What can I do about it?

@hsanger
Copy link
Contributor

hsanger commented Apr 19, 2024

Try deleting the lockfile (pnpm-lock.yaml) and running pnpm install again.

@ersek-huba
Copy link
Author

ersek-huba commented Apr 19, 2024

Still doesn't work.

Scope: all 5 workspace projects
/mnt/server:
 ENOENT  Command failed with ENOENT: git ls-remote --refs https://github.com/uNetworking/uWebSockets.js.git v20.41.0
spawn git ENOENT

This error happened while installing a direct dependency of /mnt/server

pnpm: Command failed with ENOENT: git ls-remote --refs https://github.com/uNetworking/uWebSockets.js.git v20.41.0
spawn git ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Progress: resolved 41, reused 41, downloaded 0, added 0

@Leon-9982
Copy link

Is your nodejs version v16? I see many crashes and bugs with later versions. Try running node v16 if you have a later version.

@Leon-9982
Copy link

Is your nodejs version v16? I see many crashes and bugs with later versions. Try running node v16 if you have a later version.

Make sure to do pnpm install on a fresh download after reinstalling

@ersek-huba
Copy link
Author

Aaaaand... still doesn't work...

@ersek-huba
Copy link
Author

And even the project requires that Node.js should be at least version 18.8.0.

@Leon-9982
Copy link

I've had issues with v18, so I thought I'd suggest v16.

@hsanger
Copy link
Contributor

hsanger commented Apr 21, 2024

I'm running v20.11.0 and haven't had any issues

@ersek-huba
Copy link
Author

Whatever, I solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants