#bunx shadcn-vue postinstall error

1 messages · Page 1 of 1 (latest)

waxen iris
#

Hi,
I get an error when I try to execute bunx shadcn-vue@latest init.

$ bunx shadcn-vue@latest init
  ⚙️  vue-demi [1/1] error: could not determine executable to run for package exec

error: postinstall script from "vue-demi" exited with 1

package json:

{
  "name": "template-app",
  "version": "0.0.0",
  "trustedDependencies": ["vue-demi"],
  "private": true,
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "run-p type-check \"build-only {@}\" --",
    "preview": "vite preview",
    "test:unit": "vitest",
    "build-only": "vite build",
    "type-check": "vue-tsc --build --force",
    "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
  },
  "dependencies": {
    "pinia": "^2.1.7",
    "vue": "^3.4.21",
    "vue-router": "^4.3.0"
  },
  "devDependencies": {
    "@rushstack/eslint-patch": "^1.3.3",
    "@tsconfig/node20": "^20.1.2",
    "@types/jsdom": "^21.1.6",
    "@types/node": "^20.11.28",
    "@vitejs/plugin-vue": "^5.0.4",
    "@vue/eslint-config-typescript": "^12.0.0",
    "@vue/test-utils": "^2.4.5",
    "@vue/tsconfig": "^0.5.1",
    "autoprefixer": "^10.4.19",
    "eslint": "^8.49.0",
    "eslint-plugin-vue": "^9.17.0",
    "jsdom": "^24.0.0",
    "npm-run-all2": "^6.1.2",
    "tailwindcss": "^3.4.3",
    "typescript": "~5.4.0",
    "vite": "^5.1.6",
    "vitest": "^1.4.0",
    "vue-demi": "^0.14.7",
    "vue-tsc": "^2.0.6"
  }
}
hearty oak
#

i cant seem to get this error myself 😭

#

are you on latest bun version (and is this windows/linux/macox?)

waxen iris
hearty oak
#

intresting as im basicly the same as you here

waxen iris
#

any suggestions?

hearty oak
#

just wondering does this occure when you dont have the vue-demi package installed?

#

and/or if you dont trust the package does it also break? (by making trusted deps just empy list)

waxen iris
#

I also tried making trustedDependencies empty, but that doesn't work either

hearty oak
#

i also meant removing the vue-demi from package.json (temporarily)

hearty oak
#

oh

#

yeah i cant see whats wrong with your version if its fine for me ;(((

waxen iris
#

I'll try reinstalling bun now

#

Reinstalling didn't help😭

chilly gardenBOT
hearty oak
#

nice i see you made issue

#

i cant seem to get that error on my end, even after folowing your instructions carefully... i wonder what weirdness is happening here...

waxen iris
#

UPD: I tried using the full command "bun x" instead of the alias and it worked

#

Why? 🤷‍♂️

hearty oak
#

Oh I didn't consider to say that

#

I was always doing that as bunx wasn't running bun X for me and instead normal bun...

waxen iris
#

That's weird, because they even have it in their documentation that "bunx" is just an alias

hearty oak
waxen iris