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

Unable to create a new project #12831

Open
1 task
ivanbrykov opened this issue Dec 25, 2024 · 1 comment
Open
1 task

Unable to create a new project #12831

ivanbrykov opened this issue Dec 25, 2024 · 1 comment
Labels
needs triage Issue needs to be triaged

Comments

@ivanbrykov
Copy link

Astro Info

N/A

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Hi!

Here are some steps I took to create a new Astro project but something went wrong

% corepack use yarn@3
Installing yarn@3.8.7 in the project...

➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0031: │ One or more node_modules have been detected and will be removed. This operation may take some time.
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 0s 167ms

% yarn create astro  
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 466ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ slice-ansi@npm:5.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ sisteransi@npm:1.0.5 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ log-update@npm:5.0.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ type-fest@npm:1.4.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ tar@npm:6.2.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 0s 435ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 0s 934ms


 astro   Launch sequence initiated.

   dir   Where should we create your new project?
         ./adivan-astro-3

  tmpl   How would you like to start your new project?
         A basic, minimal starter

  deps   Install dependencies?
         No
      ◼  No problem! Remember to install dependencies after setup.

   git   Initialize a new git repository?
         No
      ◼  Sounds good! You can always run git init manually.

 ██████  Project initializing...
         ▶ Template copying...
node:buffer:599
      throw new ERR_INVALID_ARG_TYPE(
            ^

TypeError [ERR_INVALID_ARG_TYPE]: The "list[1]" argument must be an instance of Buffer or Uint8Array. Received type string ('Dockerfile')
    at Function.concat (node:buffer:599:13)
    at node:internal/fs/rimraf:146:32
    at /private/var/folders/2f/t55ls5xd6hj2r4th0h5fz5900000gn/T/ee6f77cab4704b4bb4ec180f64f60e28.cjs:4523:13 {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.18.1

What's the expected result?

Successfully initialized project

Link to Minimal Reproducible Example

N/A

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Dec 25, 2024
@ivanbrykov
Copy link
Author

I think I messed it up by doing that first corepack use yarn@3. I didn't realize it also initializes a root project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant