workers-rs
workers-rs copied to clipboard
[BUG] npm init cloudflare fails
Is there an existing issue for this?
- [X] 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:
[email protected]
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
Any workaround for this?
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
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 ?
@frontmesh Yes, I'm also experiencing this...