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

[BUG] npm init cloudflare fails #253

Open
1 task done
vincentserpoul opened this issue Dec 11, 2022 · 4 comments
Open
1 task done

[BUG] npm init cloudflare fails #253

vincentserpoul opened this issue Dec 11, 2022 · 4 comments

Comments

@vincentserpoul
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What version of workers-rs are you using?

main

Describe the bug

when I do:

npm init cloudflare project_name worker-rust

I get an error:

Need to install the following packages:
  create-cloudflare@1.0.0
Ok to proceed? (y) y

Error: EXDEV: cross-device link not permitted, rename '/tmp/2122340072f1d-91d055235fe5d/worker-rust' -> '/home/xxx/project_name'

npm ERR! code 1

Steps To Reproduce

linux 6.0.11-arch1-1
npm 9.2.0
run npm init cloudflare project_name worker-rust

@Ponjimon
Copy link

Any workaround for this?

@auyer
Copy link

auyer commented Apr 10, 2023

I had the same issue. What I did to get past this, was a manual copy of the template. At this point, the template has been downloaded already when npm init was run. So you can just copy it.

An example using the above error output:
mv /tmp/2122340072f1d-91d055235fe5d/worker-rust -> /home/xxx/project_name

@frontmesh
Copy link

frontmesh commented Jun 17, 2023

Another thing that is happening when running this command not exactly related to this issue but in the similar domain
npm init cloudflare project_name worker-rust > common worker function
is that it just creates js default template instead of Rust one.

Anyone experiencing this as well ?

@oldmanfleming
Copy link

@frontmesh Yes, I'm also experiencing this...

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

5 participants