oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.28k stars 2.77k forks source link

Bun install (esbuild [1/2] error: failed to fill lifecycle scripts for protobufjs: ENOENT) #10423

Open Adryan-21 opened 6 months ago

Adryan-21 commented 6 months ago

What version of Bun is running?

1.1.4+fbe2fe0c3

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

I have a problem installing modules

File package.json

{
  "name": "front",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vue-tsc && vite build",
    "preview": "vite preview",
    "clean": "rm -rf dist && rm -rf node_modules && rm -rf .vite"
  },
  "dependencies": {
    "@schedule-x/calendar": "^1.34.0",
    "@schedule-x/theme-default": "^1.17.0",
    "@schedule-x/vue": "^1.13.0",
    "@tanstack/vue-table": "^8.12.0",
    "@types/node": "^20.11.10",
    "@vee-validate/zod": "^4.12.5",
    "@vue/compiler-sfc": "^3.4.20",
    "@vue/eslint-config-prettier": "^9.0.0",
    "@vueuse/core": "^10.7.2",
    "axios": "^1.6.7",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.0",
    "eslint-config-prettier": "^9.1.0",
    "eslint-plugin-prettier": "^5.1.3",
    "firebase": "^10.7.2",
    "lucide-vue-next": "^0.317.0",
    "pinia": "^2.1.7",
    "radix-vue": "^1.4.0",
    "tailwind-merge": "^2.2.1",
    "tailwindcss-animate": "^1.0.7",
    "vee-validate": "^4.12.5",
    "vue": "^3.4.20",
    "vue-loader": "^17.4.2",
    "vue-router": "^4.2.5",
    "zod": "^3.22.4"
  },
  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "^6.19.1",
    "@typescript-eslint/parser": "^6.19.1",
    "@vitejs/plugin-vue": "^4.5.2",
    "autoprefixer": "^10.4.17",
    "eslint": "^8.57.0",
    "eslint-plugin-vue": "^9.22.0",
    "prettier": "^3.2.5",
    "tailwindcss": "^3.4.1",
    "typescript": "^5.2.2",
    "vite": "^5.0.8",
    "vue-tsc": "^1.8.25"
  }
}

Result:

bun install v1.1.4 (fbe2fe0c)
  ⚙️  esbuild [1/2] error: failed to fill lifecycle scripts for protobufjs: ENOENT

 + @typescript-eslint/eslint-plugin@6.21.0 (v7.7.0 available)
 + @typescript-eslint/parser@6.21.0 (v7.7.0 available)
 + @vitejs/plugin-vue@4.6.2 (v5.0.4 available)
 + autoprefixer@10.4.19
 + eslint@8.57.0 (v9.1.0 available)
 + eslint-plugin-vue@9.25.0
 + prettier@3.2.5
 + tailwindcss@3.4.3
 + typescript@5.4.5
 + vite@5.2.10
 + vue-tsc@1.8.27 (v2.0.13 available)
 + @schedule-x/calendar@1.34.0
 + @schedule-x/theme-default@1.34.0
 + @schedule-x/vue@1.30.0
 + @tanstack/vue-table@8.16.0
 + @types/node@20.12.7
 + @vee-validate/zod@4.12.6
 + @vue/compiler-sfc@3.4.23
 + @vue/eslint-config-prettier@9.0.0
 + @vueuse/core@10.9.0
 + axios@1.6.8
 + class-variance-authority@0.7.0
 + clsx@2.1.0
 + eslint-config-prettier@9.1.0
 + eslint-plugin-prettier@5.1.3
 + firebase@10.11.0
 + lucide-vue-next@0.317.0 (v0.372.0 available)
 + pinia@2.1.7
 + radix-vue@1.7.1
 + tailwind-merge@2.3.0
 + tailwindcss-animate@1.0.7
 + vee-validate@4.12.6
 + vue@3.4.23
 + vue-loader@17.4.2
 + vue-router@4.3.2
 + zod@3.22.5

 434 packages installed [2.29s]

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

The problem appeared today (21/04), yesterday everything worked fine (20/04) when I use pnpm install all work

GeneralMine commented 4 months ago

Got the same issue on win 11 with bun 1.1.20 grafik

GeneralMine commented 4 months ago

I resolved the issue by cleaning my bun cache.

Try using bun pm cache to find the location of the cache. Then rm -r <folder> to delete everything. Try bun install again and it should work