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

Failed npm install due to postinstall.js #1236

Open
jotradovec opened this issue Jul 2, 2024 · 0 comments
Open

Failed npm install due to postinstall.js #1236

jotradovec opened this issue Jul 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jotradovec
Copy link

Bug report

  • [x ] I confirm this is a bug with Supabase, not with my own application.
  • [x ] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

I cannot do npm install nor npm ci

To Reproduce

  1. Go to project folder
  2. Run npm install @supabase/supabase-js
  3. See error

Expected behavior

Install runs smoothly

Screenshots

npm error code 1
npm error path /home//PycharmProjects/.../backend/node_modules/supabase
npm error command failed
npm error command sh -c node scripts/postinstall.js

npm error A complete log of this run can be found in: /home//.npm/_logs/2024-07-02T07_06_25_702Z-debug-0.log

System information

  • OS: Ubuntu
  • Version of Node.js: v18.20.3

Additional context

Content of the log:
65 http fetch GET 200 https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.44.2.tgz 1969ms (cache miss)
66 info run @nestjs/[email protected] postinstall node_modules/@nestjs/core opencollective || exit 0
67 info run [email protected] postinstall node_modules/nestjs-pino node postinstall.js
68 info run [email protected] postinstall node_modules/supabase node scripts/postinstall.js
69 info run @nestjs/[email protected] postinstall { code: 0, signal: null }
70 info run [email protected] postinstall { code: 1, signal: null }
71 verbose stack Error: command failed
71 verbose stack at ChildProcess. (/snap/node/8691/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
71 verbose stack at ChildProcess.emit (node:events:517:28)
71 verbose stack at maybeClose (node:internal/child_process:1098:16)
71 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
72 verbose pkgid [email protected]
73 verbose cwd /home/.../PycharmProjects/.../backend
74 verbose Linux 6.5.0-35-generic
75 verbose node v18.20.3
76 verbose npm v10.7.0
77 error code 1
78 error path /home/.../PycharmProjects/.../backend/node_modules/supabase
79 error command failed
80 error command sh -c node scripts/postinstall.js
81 verbose exit 1
82 verbose code 1

@jotradovec jotradovec added the bug Something isn't working label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant