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 i fails -  ENOENT  Command failed with ENOENT: git ls-remote git+ssh://[email protected]/web3-storage/one-webcrypto.git HEAD #1523

Closed
aarontravass opened this issue Jul 28, 2024 · 2 comments

Comments

@aarontravass
Copy link

Reproduction steps:

FROM node:20-alpine as base

RUN corepack enable

ENV PNPM_HOME="/pnpm"

ENV PATH="$PNPM_HOME:$PATH"

ENV NODE_ENV=production

WORKDIR /app

RUN pnpm i @web3-storage/[email protected]

CMD []

Run the above using:

podman build -t app:1.0 .

Logs:

PS C:\Users\aaron\Documents\projects\test> podman build -t app:1.0 .
STEP 1/8: FROM node:20-alpine AS base
STEP 2/8: RUN corepack enable
--> Using cache b2eb6a4152bb5a2692e82f2fd7d6d3250e3e085271fb3f16a2d85245baaef0fc
--> b2eb6a4152bb
STEP 3/8: ENV PNPM_HOME="/pnpm"
--> Using cache 48394d8958e7c83c4fca929fd84b35bafd32d67d7555195ed0163380dd5c4c0a
--> 48394d8958e7
STEP 4/8: ENV PATH="$PNPM_HOME:$PATH"
--> Using cache 1c937f1107fca5000ef5a28ddc0007c28428bbd962dbb5bf0eafdb9a096b2c93
--> 1c937f1107fc
STEP 5/8: ENV NODE_ENV=production
--> Using cache f092a221462ed085af41fb207a730a573f281d6e703bd3a745fb9778d011091e
--> f092a221462e
STEP 6/8: WORKDIR /app
--> Using cache 6db767bc66dec6341fa4ed24ce3450c3a69d07d0ba8e37e4d711bc2426986072
--> 6db767bc66de
STEP 7/8: RUN pnpm i @web3-storage/[email protected]
! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-9.6.0.tgz
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 59, reused 0, downloaded 41, added 0
Progress: resolved 103, reused 0, downloaded 103, added 0
 ENOENT  Command failed with ENOENT: git ls-remote git+ssh://[email protected]/web3-storage/one-webcrypto.git HEAD
spawn git ENOENT

This error happened while installing the dependencies of @web3-storage/[email protected]
 at @web3-storage/[email protected]

pnpm: Command failed with ENOENT: git ls-remote git+ssh://[email protected]/web3-storage/one-webcrypto.git HEAD
spawn git ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Error: building at STEP "RUN pnpm i @web3-storage/[email protected]": while running runtime: exit status 254
@alanshaw
Copy link
Member

This will be resolved by #1525 instead :)

@aarontravass
Copy link
Author

This will be resolved by #1525 instead :)

Thank you!

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