cannot run vite
See original GitHub issue⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.
- Read the docs.
- Use Vite >=2.0. (1.x is no longer supported)
- If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
When I run vite
command, it throws an error and exits.
Reproduction
- Create a project using
npm init @vitejs/app
- Run
npm i
- Run
npm run dev
or any run script usevite
(build, serve)
System Info
vite
version:2.0.0-beta.66
- Operating System:
Windows 10 x64
- Node version:
15.8.0
- Package manager (npm/yarn/pnpm) and version:
npm v7.5.3
Logs (Optional if provided reproduction)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Troubleshooting - Vite
Vite cannot handle and does not support code that only runs on non-strict mode (sloppy mode). This is because Vite uses ESM and...
Read more >Why vite.js doesn't work when I use npm run dev
I create a react app with Vite, I go to the directory with cd xxxxx , I run npm install , then I...
Read more >Unable to the run vue app with latest vite version 2.9.0 and ...
When renameDir runs it hits this error and can't rename to a dirname that already exists, it attempts to retry but isn't retrying...
Read more >vite - npm
A dev server that serves your source files over native ES modules, with rich built-in features and astonishingly fast Hot Module Replacement ( ......
Read more >Cannot run Vitest when using pnpm and vite is not declared in ...
Run Vitest for iconify/packages/api-redundancy using Run 'All Tests' from the context menu on the folder. The test run fails with MISSING DEP Can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hmm… After testing, I found the reason why esbuild could not be installed was that I used the Taobao mirror. Then I switched to the official registry, the project can build successfully.
Well, you didn’t provide that information in the original issue - that’s why it was closed.
This seems like an esbuild install failure with your system setup - try if you can install and run
esbuild
individually, if you get the same error, open an issue in esbuild’s repo instead.