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

TypeError: Missing internal module 'internal/deps/node:stream' #985

Open
hjfreyer opened this issue Nov 2, 2023 · 2 comments
Open

TypeError: Missing internal module 'internal/deps/node:stream' #985

hjfreyer opened this issue Nov 2, 2023 · 2 comments

Comments

@hjfreyer
Copy link

hjfreyer commented Nov 2, 2023

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

Expected Behavior

I can log in.

Actual Behavior

I go through the Chrome OAuth flow, and the browser says "Logged in! You may close this page.", but in the console I get this error:

Error retrieving access token: TypeError: Missing internal module 'internal/deps/node:stream'

Steps to Reproduce the Problem

  1. Install npm with apt
  2. sudo npm install @google/clasp -g
  3. clasp login

Specifications

  • Node version (node -v): v18.13.0
  • Version (clasp -v): 2.4.2
  • OS (Mac/Linux/Windows): Linux

It seems folks have recently been seeing this error in other projects, so this may be a more widespread issue? nuxt/cli#265

@hjfreyer
Copy link
Author

hjfreyer commented Nov 2, 2023

I just tried to reproduce on another Linux machine, and everything worked. That machine still had clasp 2.4.2, but was running with node v12.22.12.

Interestingly, that nuxt bug filed last week was also running node v18.13.0 - though that was release back in January...

@hjfreyer
Copy link
Author

hjfreyer commented Nov 2, 2023

Worked around it by using nvm to install v20.9.0.

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

1 participant