You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
Can't start after init a vue-ts project.
Reproduction
npm init @vitejs/app
enter project-name
choose vue-ts
npm i
npm run dev
System Info
vite version: ^2.0.0-beta.12
Operating System: macos big sur 11.1
Node version: v15.6.0
Package manager (npm/yarn/pnpm) and version: npm 7.4.0
Logs (Optional if provided reproduction)
➜ vite-project git:(master) ✗ vite --debug
/Users/hanhan/WebstormProjects/learning-vue/vite-project/node_modules/esbuild/bin/esbuild:2
throw new Error(`esbuild: Failed to install correctly
^
Error: esbuild: Failed to install correctly
Make sure you don't have "ignore-scripts" set to true. You can check this with
"npm config get ignore-scripts". If that returns true you can reset it back to
false using "npm config set ignore-scripts false" and then reinstall esbuild.
at Object.<anonymous> (/Users/hanhan/WebstormProjects/learning-vue/vite-project/node_modules/esbuild/bin/esbuild:2:7)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47
vite:esbuild esbuild error with options used: {
loader: 'ts',
sourcemap: true,
sourcefile: '/Users/hanhan/WebstormProjects/learning-vue/vite-project/vite.config.ts',
target: 'esnext'
} +0ms
failed to load config from /Users/hanhan/WebstormProjects/learning-vue/vite-project/vite.config.ts
error when starting dev server:
Error: The service was stopped
at /Users/hanhan/WebstormProjects/learning-vue/vite-project/node_modules/esbuild/lib/main.js:846:33
at Socket.afterClose (/Users/hanhan/WebstormProjects/learning-vue/vite-project/node_modules/esbuild/lib/main.js:493:7)
at Socket.emit (node:events:391:22)
at endReadableNT (node:internal/streams/readable:1307:12)
at processTicksAndRejections (node:internal/process/task_queues:81:21)
The text was updated successfully, but these errors were encountered:
This is an esbuild install issue. Its error message already explains what you need to do. If it still doesn't work after you fix npm's ignore-script config, open an issue for esbuild instead.
Describe the bug
Can't start after init a
vue-ts
project.Reproduction
npm init @vitejs/app
vue-ts
npm i
npm run dev
System Info
vite
version:^2.0.0-beta.12
Logs (Optional if provided reproduction)
➜ vite-project git:(master) ✗ vite --debug
/Users/hanhan/WebstormProjects/learning-vue/vite-project/node_modules/esbuild/bin/esbuild:2
throw new Error(`esbuild: Failed to install correctly
^
Error: esbuild: Failed to install correctly
Make sure you don't have "ignore-scripts" set to true. You can check this with
"npm config get ignore-scripts". If that returns true you can reset it back to
false using "npm config set ignore-scripts false" and then reinstall esbuild.
vite:esbuild esbuild error with options used: {
loader: 'ts',
sourcemap: true,
sourcefile: '/Users/hanhan/WebstormProjects/learning-vue/vite-project/vite.config.ts',
target: 'esnext'
} +0ms
failed to load config from /Users/hanhan/WebstormProjects/learning-vue/vite-project/vite.config.ts
error when starting dev server:
Error: The service was stopped
at /Users/hanhan/WebstormProjects/learning-vue/vite-project/node_modules/esbuild/lib/main.js:846:33
at Socket.afterClose (/Users/hanhan/WebstormProjects/learning-vue/vite-project/node_modules/esbuild/lib/main.js:493:7)
at Socket.emit (node:events:391:22)
at endReadableNT (node:internal/streams/readable:1307:12)
at processTicksAndRejections (node:internal/process/task_queues:81:21)
The text was updated successfully, but these errors were encountered: