Closed kemalgencay closed 2 years ago
The macos version you're using is unsupported. See https://github.com/evanw/esbuild/issues/1278#issuecomment-923603349 and workaround https://github.com/sveltejs/kit/issues/3028#issuecomment-991941064
Hi, I installed Vite with npm install but when I do npm run dev in a project it gives error: command vite not found. My package.json is as you instructed:
"devDependencies": { "esbuild-wasm":"latest" }, "pnpm":{ "overrides":{ @.***" } }
My HW is old running OS 10.12 and can not upgrade to 10.13 What can I do? Thanks Regards On Sun, Mar 27, 2022 at 6:47 AM Bjorn Lu @.***> wrote:
The macos version you're using is unsupported. See evanw/esbuild#1278 (comment) https://github.com/evanw/esbuild/issues/1278#issuecomment-923603349 and workaround sveltejs/kit#3028 (comment) https://github.com/sveltejs/kit/issues/3028#issuecomment-991941064
— Reply to this email directly, view it on GitHub https://github.com/vitejs/vite/issues/7467#issuecomment-1079832319, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEFR2EPFL6BKIJ6C3N3CSDVB7K6NANCNFSM5RWWPS6A . You are receiving this because you authored the thread.Message ID: @.***>
The workaround shown is for pnpm. If you're using npm, use npm overrides. So it should be:
"devDependencies": {
"esbuild-wasm":"latest"
},
"overrides": {
"esbuild":"npm:esbuild-wasm@latest"
}
Still it gives error:
Sezgi-MacBook-Pro:vite-yeni kemalgencay$ npm run dev
@.*** dev
vite
sh: vite: command not found
On Mon, Mar 28, 2022 at 5:33 AM Bjorn Lu @.***> wrote:
The workaround shown is for pnpm. If you're using npm, use npm overrides https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides. So it should be:
"devDependencies": { "esbuild-wasm":"latest" }, "overrides": { @.***" }
— Reply to this email directly, view it on GitHub https://github.com/vitejs/vite/issues/7467#issuecomment-1080118209, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEFR2ASODFF2YRN43WT2DDVCEK73ANCNFSM5RWWPS6A . You are receiving this because you authored the thread.Message ID: @.***>
Sorry it worked after I installed vite again with npm install vite Thank you
On Mon, Mar 28, 2022 at 8:01 AM Kemal Gençay @.***> wrote:
Still it gives error:
Sezgi-MacBook-Pro:vite-yeni kemalgencay$ npm run dev
@.*** dev
vite
sh: vite: command not found
On Mon, Mar 28, 2022 at 5:33 AM Bjorn Lu @.***> wrote:
The workaround shown is for pnpm. If you're using npm, use npm overrides https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides. So it should be:
"devDependencies": { "esbuild-wasm":"latest" }, "overrides": { @.***" }
— Reply to this email directly, view it on GitHub https://github.com/vitejs/vite/issues/7467#issuecomment-1080118209, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEFR2ASODFF2YRN43WT2DDVCEK73ANCNFSM5RWWPS6A . You are receiving this because you authored the thread.Message ID: @.***>
Hi , I type http://localhost:3000/--host but can not reach the site from my phone on the same network. How can I do please. Thanks Kemal
On Mon, Mar 28, 2022 at 8:04 AM Kemal Gençay @.***> wrote:
Sorry it worked after I installed vite again with npm install vite Thank you
On Mon, Mar 28, 2022 at 8:01 AM Kemal Gençay @.***> wrote:
Still it gives error:
Sezgi-MacBook-Pro:vite-yeni kemalgencay$ npm run dev
@.*** dev
vite
sh: vite: command not found
On Mon, Mar 28, 2022 at 5:33 AM Bjorn Lu @.***> wrote:
The workaround shown is for pnpm. If you're using npm, use npm overrides https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides. So it should be:
"devDependencies": { "esbuild-wasm":"latest" }, "overrides": { @.***" }
— Reply to this email directly, view it on GitHub https://github.com/vitejs/vite/issues/7467#issuecomment-1080118209, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEFR2ASODFF2YRN43WT2DDVCEK73ANCNFSM5RWWPS6A . You are receiving this because you authored the thread.Message ID: @.***>
Describe the bug
code 1 npm ERR! path /Users/kemalgencay/vite-project/node_modules/esbuild npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! node:child_process:828 npm ERR! err = new Error(msg); npm ERR! ^ npm ERR! npm ERR! Error: Command failed: /Users/kemalgencay/vite-project/node_modules/esbuild/bin/esbuild --version npm ERR! dyld: Symbol not found: _SecTrustEvaluateWithError npm ERR! Referenced from: /Users/kemalgencay/vite-project/node_modules/esbuild/bin/esbuild npm ERR! Expected in: flat namespace
Reproduction
vite.new
System Info
Used Package Manager
npm
Logs
Validations