Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] npx @temporalio/create@latest fails in node 18. #905

Closed
bergundy opened this issue Oct 6, 2022 · 2 comments
Closed

[Bug] npx @temporalio/create@latest fails in node 18. #905

bergundy opened this issue Oct 6, 2022 · 2 comments
Assignees
Labels
bug Something isn't working node 18

Comments

@bergundy
Copy link
Member

bergundy commented Oct 6, 2022

Getting DownloadError: Premature close.

Likely related to isaacs/node-tar#321.

@lorensr
Copy link
Contributor

lorensr commented Dec 28, 2022

I thought this was fixed, but get:

$ fnm use 18
Using Node v18.12.1
$ npm cache clean --force
$ npx @temporalio/create@latest ./my-app
Using GITHUB_TOKEN env var for downloading from GitHub
✔ Which sample would you like to use? › hello-world
Creating a new Temporal project in /Users/me/test/my-app/

Downloading files for sample hello-world. This might take a moment.


Aborting installation.
Unexpected error. Please report it as a bug:
DownloadError: Premature close
    at createApp (file:///Users/me/.npm/_npx/84edb3507a773a27/node_modules/@temporalio/create/lib/create-project.js:136:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async start (file:///Users/me/.npm/_npx/84edb3507a773a27/node_modules/@temporalio/create/lib/index.js:121:5)

from this line:

image

@lorensr
Copy link
Contributor

lorensr commented Dec 28, 2022

Fixed by npx clear-npx-cache (npx has a separate cache). Thanks @mjameswh 😊

image

@lorensr lorensr closed this as completed Dec 28, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working node 18
Projects
None yet
Development

No branches or pull requests

3 participants