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

npm install error when using https-proxy #1876

Closed
zxqzy opened this issue Jan 24, 2024 · 9 comments
Closed

npm install error when using https-proxy #1876

zxqzy opened this issue Jan 24, 2024 · 9 comments

Comments

@zxqzy
Copy link

zxqzy commented Jan 24, 2024

Describe the bug
can't install supabase-cli.

To Reproduce

  1. create a new vue project
  2. run npm i supabase --save-dev

Expected behavior
install supabase successfully.

Screenshots
image

Desktop (please complete the following information):

  • OS: [mac]
  • Version of Node.js [v20.11.0]
  • Version of npm [10.2.4]

Additional context
pnpm too.
image

@sweatybridge
Copy link
Contributor

Perhaps this is a problem for newer versions of nodejs. Could you try the workaround in this comment? #1769 (comment)

NODE_OPTIONS=--no-experimental-fetch npm i supabase --save-dev

@sweatybridge sweatybridge changed the title npm install error npm install error on node 2 Jan 26, 2024
@sweatybridge sweatybridge changed the title npm install error on node 2 npm install error on node 20 Jan 26, 2024
@sweatybridge
Copy link
Contributor

Tried on node 20 and can't reproduce.

$ docker run --rm -it node:20 npx supabase help
Need to install the following packages:
supabase@1.136.3
Ok to proceed? (y) y
Supabase CLI 1.136.3

Usage:
  supabase [command]
...

@zxqzy
Copy link
Author

zxqzy commented Jan 26, 2024

Perhaps this is a problem for newer versions of nodejs. Could you try the workaround in this comment? #1769 (comment)

NODE_OPTIONS=--no-experimental-fetch npm i supabase --save-dev

Is it a problem with my local environment? npm, yarn and pnpm cannot install successfully.
image
image
image

@sweatybridge
Copy link
Contributor

According to the error message, there is a connection timeout downloading from github releases. Could you try downloading manually with curl and share the output?

curl -v --trace-time https://github.com/supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz

@zxqzy
Copy link
Author

zxqzy commented Jan 26, 2024

According to the error message, there is a connection timeout downloading from github releases. Could you try downloading manually with curl and share the output?

curl -v --trace-time https://github.com/supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz

my-app curl -v --trace-time https://github.com/supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz
17:31:08.253453 * Uses proxy env variable https_proxy == 'http://127.0.0.1:7890'
17:31:08.254648 * Trying 127.0.0.1...
17:31:08.254672 * TCP_NODELAY set
17:31:08.254821 * Connected to 127.0.0.1 (127.0.0.1) port 7890 (#0)
17:31:08.254852 * allocate connect buffer!
17:31:08.254873 * Establish HTTP proxy tunnel to github.com:443
17:31:08.254911 > CONNECT github.com:443 HTTP/1.1
17:31:08.254911 > Host: github.com:443
17:31:08.254911 > User-Agent: curl/7.64.1
17:31:08.254911 > Proxy-Connection: Keep-Alive
17:31:08.254911 >
17:31:08.255348 < HTTP/1.1 200 Connection established
17:31:08.255377 <
17:31:08.255396 * Proxy replied 200 to CONNECT request
17:31:08.255413 * CONNECT phase completed!
17:31:08.255516 * ALPN, offering h2
17:31:08.255542 * ALPN, offering http/1.1
17:31:08.263234 * successfully set certificate verify locations:
17:31:08.263262 * CAfile: /etc/ssl/cert.pem
CApath: none
17:31:08.263329 * TLSv1.2 (OUT), TLS handshake, Client hello (1):
17:31:08.263354 * CONNECT phase completed!
17:31:08.263373 * CONNECT phase completed!
17:31:08.547252 * TLSv1.2 (IN), TLS handshake, Server hello (2):
17:31:08.547368 * TLSv1.2 (IN), TLS handshake, Certificate (11):
17:31:08.550878 * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
17:31:08.551778 * TLSv1.2 (IN), TLS handshake, Server finished (14):
17:31:08.552320 * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
17:31:08.552358 * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
17:31:08.552438 * TLSv1.2 (OUT), TLS handshake, Finished (20):
17:31:08.657475 * TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
17:31:08.657538 * TLSv1.2 (IN), TLS handshake, Finished (20):
17:31:08.657563 * SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
17:31:08.657577 * ALPN, server accepted to use h2
17:31:08.657593 * Server certificate:
17:31:08.657618 * subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com
17:31:08.657638 * start date: Feb 14 00:00:00 2023 GMT
17:31:08.657654 * expire date: Mar 14 23:59:59 2024 GMT
17:31:08.657680 * subjectAltName: host "github.com" matched cert's "github.com"
17:31:08.657701 * issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS Hybrid ECC SHA384 2020 CA1
17:31:08.657716 * SSL certificate verify ok.
17:31:08.657746 * Using HTTP2, server supports multi-use
17:31:08.657760 * Connection state changed (HTTP/2 confirmed)
17:31:08.657775 * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
17:31:08.657819 * Using Stream ID: 1 (easy handle 0x7fe0de00cc00)
17:31:08.657863 > GET /supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz HTTP/2
17:31:08.657863 > Host: github.com
17:31:08.657863 > User-Agent: curl/7.64.1
17:31:08.657863 > Accept: /
17:31:08.657863 >
17:31:08.759899 * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
17:31:09.101705 < HTTP/2 302
17:31:09.101783 < server: GitHub.com
17:31:09.101830 < date: Fri, 26 Jan 2024 09:31:08 GMT
17:31:09.101876 < content-type: text/html; charset=utf-8
17:31:09.101920 < vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With
17:31:09.101967 < location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/314160187/4965f0ff-2f64-4fec-a1be-432dee12d4c0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240126%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240126T093108Z&X-Amz-Expires=300&X-Amz-Signature=34b2617d2ea0c0ddc6b9c584a373beb35f022a28580aedd8ea4b4013a0ec9c5f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=314160187&response-content-disposition=attachment%3B%20filename%3Dsupabase_darwin_amd64.tar.gz&response-content-type=application%2Foctet-stream
17:31:09.102016 < cache-control: no-cache
17:31:09.102059 < strict-transport-security: max-age=31536000; includeSubdomains; preload
17:31:09.102102 < x-frame-options: deny
17:31:09.102145 < x-content-type-options: nosniff
17:31:09.102188 < x-xss-protection: 0
17:31:09.102232 < referrer-policy: no-referrer-when-downgrade
17:31:09.102282 < content-security-policy: default-src 'none'; base-uri 'self'; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events api.githubcopilot.com objects-origin.githubusercontent.com .actions.githubusercontent.com wss://.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/
17:31:09.102465 < content-length: 0
17:31:09.102517 < x-github-request-id: 6657:390E21:55FA1A:5C7DAB:65B37BDC
17:31:09.102563 <
17:31:09.102690 * Connection #0 to host 127.0.0.1 left intact

  • Closing connection 0
    ➜ my-app supabase
    zsh: command not found: supabase
    ➜ my-app supabase
    zsh: command not found: supabase
    ➜ my-app curl -v --trace-time https://github.com/supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz
    17:33:09.601741 * Uses proxy env variable https_proxy == 'http://127.0.0.1:7890'
    17:33:09.602653 * Trying 127.0.0.1...
    17:33:09.602699 * TCP_NODELAY set
    17:33:09.603094 * Connected to 127.0.0.1 (127.0.0.1) port 7890 (#0)
    17:33:09.603139 * allocate connect buffer!
    17:33:09.603165 * Establish HTTP proxy tunnel to github.com:443
    17:33:09.603229 > CONNECT github.com:443 HTTP/1.1
    17:33:09.603229 > Host: github.com:443
    17:33:09.603229 > User-Agent: curl/7.64.1
    17:33:09.603229 > Proxy-Connection: Keep-Alive
    17:33:09.603229 >
    17:33:09.603467 < HTTP/1.1 200 Connection established
    17:33:09.603516 <
    17:33:09.603546 * Proxy replied 200 to CONNECT request
    17:33:09.603572 * CONNECT phase completed!
    17:33:09.603779 * ALPN, offering h2
    17:33:09.603814 * ALPN, offering http/1.1
    17:33:09.611890 * successfully set certificate verify locations:
    17:33:09.611918 * CAfile: /etc/ssl/cert.pem
    CApath: none
    17:33:09.611994 * TLSv1.2 (OUT), TLS handshake, Client hello (1):
    17:33:09.612019 * CONNECT phase completed!
    17:33:09.612037 * CONNECT phase completed!
    17:33:09.896960 * TLSv1.2 (IN), TLS handshake, Server hello (2):
    17:33:09.897128 * TLSv1.2 (IN), TLS handshake, Certificate (11):
    17:33:09.901228 * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
    17:33:09.902524 * TLSv1.2 (IN), TLS handshake, Server finished (14):
    17:33:09.903062 * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
    17:33:09.903099 * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
    17:33:09.903182 * TLSv1.2 (OUT), TLS handshake, Finished (20):
    17:33:10.015392 * TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
    17:33:10.015607 * TLSv1.2 (IN), TLS handshake, Finished (20):
    17:33:10.015673 * SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
    17:33:10.015718 * ALPN, server accepted to use h2
    17:33:10.015766 * Server certificate:
    17:33:10.015831 * subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com
    17:33:10.015885 * start date: Feb 14 00:00:00 2023 GMT
    17:33:10.015931 * expire date: Mar 14 23:59:59 2024 GMT
    17:33:10.016002 * subjectAltName: host "github.com" matched cert's "github.com"
    17:33:10.016124 * issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS Hybrid ECC SHA384 2020 CA1
    17:33:10.016177 * SSL certificate verify ok.
    17:33:10.016259 * Using HTTP2, server supports multi-use
    17:33:10.016305 * Connection state changed (HTTP/2 confirmed)
    17:33:10.016393 * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
    17:33:10.016770 * Using Stream ID: 1 (easy handle 0x7ff19d00be00)
    17:33:10.016890 > GET /supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz HTTP/2
    17:33:10.016890 > Host: github.com
    17:33:10.016890 > User-Agent: curl/7.64.1
    17:33:10.016890 > Accept: /
    17:33:10.016890 >
    17:33:10.117946 * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
    17:33:10.445420 < HTTP/2 302
    17:33:10.445500 < server: GitHub.com
    17:33:10.445549 < date: Fri, 26 Jan 2024 09:33:10 GMT
    17:33:10.445596 < content-type: text/html; charset=utf-8
    17:33:10.445641 < vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With
    17:33:10.445689 < location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/314160187/4965f0ff-2f64-4fec-a1be-432dee12d4c0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240126%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240126T093310Z&X-Amz-Expires=300&X-Amz-Signature=b3a59979b9e0d8ab7e3b5fa7dffbf2a1386fb063b18d2a1fefce64865c3c9971&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=314160187&response-content-disposition=attachment%3B%20filename%3Dsupabase_darwin_amd64.tar.gz&response-content-type=application%2Foctet-stream
    17:33:10.445738 < cache-control: no-cache
    17:33:10.445783 < strict-transport-security: max-age=31536000; includeSubdomains; preload
    17:33:10.445826 < x-frame-options: deny
    17:33:10.445869 < x-content-type-options: nosniff
    17:33:10.445913 < x-xss-protection: 0
    17:33:10.445956 < referrer-policy: no-referrer-when-downgrade
    17:33:10.446002 < content-security-policy: default-src 'none'; base-uri 'self'; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events api.githubcopilot.com objects-origin.githubusercontent.com .actions.githubusercontent.com wss://.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/
    17:33:10.446314 < content-length: 0
    17:33:10.446374 < x-github-request-id: 72C3:3A94EA:565C94:5CE6C3:65B37C55
    17:33:10.446419 <
    17:33:10.446554 * Connection #0 to host 127.0.0.1 left intact
  • Closing connection 0
    ➜ my-app curl -v --trace-time https://github.com/supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz
    17:34:12.488853 * Uses proxy env variable https_proxy == 'http://127.0.0.1:7890'
    17:34:12.489596 * Trying 127.0.0.1...
    17:34:12.489640 * TCP_NODELAY set
    17:34:12.489852 * Connection failed
    17:34:12.489902 * connect to 127.0.0.1 port 7890 failed: Connection refused
    17:34:12.489941 * Failed to connect to 127.0.0.1 port 7890: Connection refused
    17:34:12.489979 * Closing connection 0
    curl: (7) Failed to connect to 127.0.0.1 port 7890: Connection refused
    ➜ my-app curl -v --trace-time https://github.com/supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz
    17:34:22.207218 * Uses proxy env variable https_proxy == 'http://127.0.0.1:7890'
    17:34:22.207575 * Trying 127.0.0.1...
    17:34:22.207599 * TCP_NODELAY set
    17:34:22.207695 * Connection failed
    17:34:22.207717 * connect to 127.0.0.1 port 7890 failed: Connection refused
    17:34:22.207738 * Failed to connect to 127.0.0.1 port 7890: Connection refused
    17:34:22.207758 * Closing connection 0
    curl: (7) Failed to connect to 127.0.0.1 port 7890: Connection refused
    ➜ my-app curl -v --trace-time https://github.com/supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz
    17:35:17.563313 * Uses proxy env variable https_proxy == 'http://127.0.0.1:7890'
    17:35:17.563755 * Trying 127.0.0.1...
    17:35:17.563783 * TCP_NODELAY set
    17:35:17.563974 * Connected to 127.0.0.1 (127.0.0.1) port 7890 (#0)
    17:35:17.564020 * allocate connect buffer!
    17:35:17.564042 * Establish HTTP proxy tunnel to github.com:443
    17:35:17.564089 > CONNECT github.com:443 HTTP/1.1
    17:35:17.564089 > Host: github.com:443
    17:35:17.564089 > User-Agent: curl/7.64.1
    17:35:17.564089 > Proxy-Connection: Keep-Alive
    17:35:17.564089 >
    17:35:17.564257 < HTTP/1.1 200 Connection established
    17:35:17.564289 <
    17:35:17.564315 * Proxy replied 200 to CONNECT request
    17:35:17.564343 * CONNECT phase completed!
    17:35:17.564536 * ALPN, offering h2
    17:35:17.564575 * ALPN, offering http/1.1
    17:35:17.573248 * successfully set certificate verify locations:
    17:35:17.573283 * CAfile: /etc/ssl/cert.pem
    CApath: none
    17:35:17.573405 * TLSv1.2 (OUT), TLS handshake, Client hello (1):
    17:35:17.573458 * CONNECT phase completed!
    17:35:17.573476 * CONNECT phase completed!
    17:35:17.900117 * TLSv1.2 (IN), TLS handshake, Server hello (2):
    17:35:17.900207 * TLSv1.2 (IN), TLS handshake, Certificate (11):
    17:35:17.902759 * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
    17:35:17.903517 * TLSv1.2 (IN), TLS handshake, Server finished (14):
    17:35:17.904014 * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
    17:35:17.904055 * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
    17:35:17.904128 * TLSv1.2 (OUT), TLS handshake, Finished (20):
    17:35:18.023169 * TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
    17:35:18.023335 * TLSv1.2 (IN), TLS handshake, Finished (20):
    17:35:18.023397 * SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
    17:35:18.023443 * ALPN, server accepted to use h2
    17:35:18.023491 * Server certificate:
    17:35:18.023557 * subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com
    17:35:18.023619 * start date: Feb 14 00:00:00 2023 GMT
    17:35:18.023737 * expire date: Mar 14 23:59:59 2024 GMT
    17:35:18.023818 * subjectAltName: host "github.com" matched cert's "github.com"
    17:35:18.023883 * issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS Hybrid ECC SHA384 2020 CA1
    17:35:18.023928 * SSL certificate verify ok.
    17:35:18.024001 * Using HTTP2, server supports multi-use
    17:35:18.024049 * Connection state changed (HTTP/2 confirmed)
    17:35:18.024096 * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
    17:35:18.024229 * Using Stream ID: 1 (easy handle 0x7fc6e1809a00)
    17:35:18.024365 > GET /supabase/cli/releases/download/v1.136.3/supabase_darwin_amd64.tar.gz HTTP/2
    17:35:18.024365 > Host: github.com
    17:35:18.024365 > User-Agent: curl/7.64.1
    17:35:18.024365 > Accept: /
    17:35:18.024365 >
    17:35:18.265227 * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
    17:35:18.576732 < HTTP/2 302
    17:35:18.576811 < server: GitHub.com
    17:35:18.576858 < date: Fri, 26 Jan 2024 09:35:18 GMT
    17:35:18.576903 < content-type: text/html; charset=utf-8
    17:35:18.576947 < vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With
    17:35:18.576993 < location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/314160187/4965f0ff-2f64-4fec-a1be-432dee12d4c0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240126%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240126T093518Z&X-Amz-Expires=300&X-Amz-Signature=af9885eb5977e546903e3701b2b0de6361ba0668d736065e4fd306c8060e818f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=314160187&response-content-disposition=attachment%3B%20filename%3Dsupabase_darwin_amd64.tar.gz&response-content-type=application%2Foctet-stream
    17:35:18.577039 < cache-control: no-cache
    17:35:18.577083 < strict-transport-security: max-age=31536000; includeSubdomains; preload
    17:35:18.577126 < x-frame-options: deny
    17:35:18.577169 < x-content-type-options: nosniff
    17:35:18.577212 < x-xss-protection: 0
    17:35:18.577256 < referrer-policy: no-referrer-when-downgrade
    17:35:18.577305 < content-security-policy: default-src 'none'; base-uri 'self'; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events api.githubcopilot.com objects-origin.githubusercontent.com .actions.githubusercontent.com wss://.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/
    17:35:18.577442 < content-length: 0
    17:35:18.577490 < x-github-request-id: 10AD:390E21:56AA27:5D3AF7:65B37CD5
    17:35:18.577535 <
    17:35:18.577657 * Connection #0 to host 127.0.0.1 left intact
  • Closing connection 0

@sweatybridge
Copy link
Contributor

sweatybridge commented Jan 26, 2024

Seems like you are behind a corporate proxy which the postinstall script is not picking up. Could you try to set it explicitly like this

npm config set https-proxy http://127.0.0.1:7890
npm i supabase --save-dev

@sweatybridge sweatybridge changed the title npm install error on node 20 npm install error when using https-proxy Jan 26, 2024
@zxqzy
Copy link
Author

zxqzy commented Jan 26, 2024

reproduce

image

Now, the installation was successful, but it seems that creating bin failed. What is the problem?

@sweatybridge
Copy link
Contributor

sweatybridge commented Jan 26, 2024

You have to use npx supabase -v

@zxqzy
Copy link
Author

zxqzy commented Jan 26, 2024

You have to use npx supabase -v

Right, this is not a global installation, thanks

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

2 participants