vite
vite copied to clipboard
EUNSUPPORTEDPROTOCOL
Describe the bug
PS D:\dddd> npm create vite@latest
> npx
> create-vite
√ Project name: ... vite-project
√ Select a framework: » React
√ Select a variant: » TypeScript + SWC
Scaffolding project in D:\dddd\vite-project...
Done. Now run:
cd vite-project
npm install
npm run dev
PS D:\dddd> cd .\vite-project\
PS D:\dddd\vite-project> npm i
npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "workspace:": workspace:^
npm error A complete log of this run can be found in:
Reproduction
na
Steps to reproduce
npm create vite@latest
npx create-vite
√ Project name: ... vite-project √ Select a framework: » React √ Select a variant: » TypeScript + SWC
npm i npm error code EUNSUPPORTEDPROTOCOL npm error Unsupported URL Type "workspace:": workspace:^ npm error A complete log of this run can be found in:
System Info
windows 11
node -v
v20.13.1
npm -v
10.8.0
Used Package Manager
npm
Logs
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.