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

The project doesn't init when the project name contains an "@" #6638

Closed
7 tasks done
nicolascvoodoo opened this issue Jan 26, 2022 · 0 comments · Fixed by #6739
Closed
7 tasks done

The project doesn't init when the project name contains an "@" #6638

nicolascvoodoo opened this issue Jan 26, 2022 · 0 comments · Fixed by #6739
Labels
p2-nice-to-have Not breaking anything but nice to have (priority) pending triage

Comments

@nicolascvoodoo
Copy link

Describe the bug

➜ npm init vite@latest
✔ Project name: … @foo/bar
✔ Select a framework: › vue
✔ Select a variant: › vue-ts
Error: ENOENT: no such file or directory, mkdir '/Users/nicolasc/Documents/projects/@foo/bar'
    at Object.mkdirSync (fs.js:987:3)
    at init (/Users/nicolasc/.npm/_npx/1415fee72ff6294b/node_modules/create-vite/index.js:227:8)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  errno: -2,
  syscall: 'mkdir',
  code: 'ENOENT',
  path: '/Users/nicolasc/Documents/projects/@foo/bar'
}

Reproduction

http://doesnt-apply

System Info

System:
    OS: macOS 11.4
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 290.14 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.3 - ~/.nvm/versions/node/v14.15.3/bin/node
    npm: 7.11.1 - ~/.nvm/versions/node/v14.15.3/bin/npm
  Browsers:
    Brave Browser: 90.1.24.82
    Chrome: 97.0.4692.99
    Firefox: 96.0.2
    Safari: 14.1.1

Used Package Manager

npm

Logs

No response

Validations

pd4d10 added a commit to pd4d10/vite that referenced this issue Feb 3, 2022
@sapphi-red sapphi-red added has pr p2-nice-to-have Not breaking anything but nice to have (priority) labels Apr 21, 2022
@github-actions github-actions bot locked and limited conversation to collaborators May 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p2-nice-to-have Not breaking anything but nice to have (priority) pending triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants