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: not found #225

Closed
zqcccc opened this issue Nov 20, 2022 · 2 comments
Closed

pnpm: not found #225

zqcccc opened this issue Nov 20, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@zqcccc
Copy link

zqcccc commented Nov 20, 2022

#11 43.60 [4/4] Building fresh packages...
 
#11 55.04 Done in 54.15s.
 
#11 57.16 npm WARN exec The following package was not found and will be installed: browserslist@4.21.4
 
#11 57.91 /bin/sh: pnpm: not found
#11 57.92 node:child_process:935
#11 57.92     throw err;
#11 57.92     ^
#11 57.92
#11 57.92 Error: Command failed: pnpm info caniuse-lite --json
#11 57.92 /bin/sh: pnpm: not found
#11 57.92
#11 57.92     at checkExecSyncError (node:child_process:861:11)
 
#11 57.92     at Object.execSync (node:child_process:932:15)
#11 57.92     at getLatestInfo (/root/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:73:20)
#11 57.92     at updateDB (/root/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:264:16)
#11 57.92     at Object.<anonymous> (/root/.npm/_npx/072487b38308305a/node_modules/browserslist/cli.js:42:3)
#11 57.92     at Module._compile (node:internal/modules/cjs/loader:1155:14)
#11 57.92     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
#11 57.92     at Module.load (node:internal/modules/cjs/loader:1033:32)
#11 57.92     at Function.Module._load (node:internal/modules/cjs/loader:868:12) {
#11 57.92   status: 127,
#11 57.92   signal: null,
#11 57.92   output: [
#11 57.92     null,
#11 57.92     Buffer(0) [Uint8Array] [],
#11 57.92     Buffer(25) [Uint8Array] [
#11 57.92        47,  98, 105, 110,  47, 115, 104,
#11 57.92        58,  32, 112, 110, 112, 109,  58,
#11 57.92        32, 110, 111, 116,  32, 102, 111,
#11 57.92       117, 110, 100,  10
#11 57.92     ]
#11 57.92   ],
#11 57.92   pid: 362,
#11 57.92   stdout: Buffer(0) [Uint8Array] [],
#11 57.92   stderr: Buffer(25) [Uint8Array] [
#11 57.92      47,  98, 105, 110,  47, 115, 104,
#11 57.92      58,  32, 112, 110, 112, 109,  58,
#11 57.92      32, 110, 111, 116,  32, 102, 111,
#11 57.92     117, 110, 100,  10
#11 57.92   ]
#11 57.92 }
 
#11 ERROR: executor failed running [/bin/sh -c yarn install --frozen-lockfile && npx browserslist@latest --update-db]: exit code: 1
-----
> [builder 6/7] RUN yarn install --frozen-lockfile && npx browserslist@latest --update-db:
-----
executor failed running [/bin/sh -c yarn install --frozen-lockfile && npx browserslist@latest --update-db]: exit code: 1
 

When I deploy it to Railway, It looks like error happens with pnpm when it builds docker image, even I try it in my personal win11 computer, it has same error.

@JokieZhang
Copy link

TRY THIS:
1.Open the Dockerfile
2. Find 'RUN apk add --no-cache python3 py3-pip make gcc g++'
3. Add 'RUN npm i -g pnpm' after that line
4. Find 'COPY package.json yarn.lock /app/'
5. Add 'COPY package.json pnpm-lock.yaml /app/' after that line

@djyde
Copy link
Owner

djyde commented Dec 21, 2022

Good to know. I will fix this dockerfile

@djyde djyde added the help wanted Extra attention is needed label Dec 21, 2022
@djyde djyde closed this as completed Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants