google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.52k stars 422 forks source link

'clasp login' doesn't wait for response #971

Open rombetjai opened 1 year ago

rombetjai commented 1 year ago

Expected Behavior

Send the 'clasp login' command and the console will wait for the browser to respond and the authentication process to complete.

Actual Behavior

I am trying to login with clasp to clone and edit a project in Google Apps Script but I am having a failure.

Previously, on another computer I could login without problem, I sent the clasp login command and it waited for a response from the browser, but now what happens is that I send the clasp login command, it generates the url and opens the browser tab but apparently it doesn't wait for a response. What it finally does is that when confirming the login it redirects to localhost:port but there it does not connect and indicates that the connection has been refused.

I have tried to do it with clasp login --no-localhost but this method is deprecated and blocked by Clasp CLI.

I have checked in the firewall and Node.js Runtime is enabled for private and public networks. So I don't know what can be the problem.

I remain attentive to possible solutions, thanks.

Steps to Reproduce the Problem

  1. npm install -g @google/clasp
  2. clasp login

Specifications