ElMassimo/vite_ruby

`npm bin` is removed in newer versions of NPM

sawyerh opened this issue ยท 0 comments

  • I have tried upgrading by running bundle update vite_ruby.
  • I have read the troubleshooting section before opening an issue.

Description ๐Ÿ“–

npm bin is used by vite_ruby, but it's no longer included in newer versions of NPM โ€“ it was deprecated in NPM version 9, in favor of npx or npm exec.

Reproduction ๐Ÿž

Please provide a link to a repo that can reproduce the problem you ran into.

Vite Ruby Info

Run bin/rake vite:info and provide the output:

bin/vite present?: true
vite_ruby: 3.5.0
vite_rails: 3.0.17
rails: 7.1.3.2
node: v20.12.0
npm: 10.5.0
yarn: 1.22.22
pnpm:
ruby: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]

installed packages:
pfml@1.0.0 /Users/sawyer/Dev/Sites/pfml-starter-kit-app/pfml
โ”œโ”€โ”ฌ vite-plugin-rails@0.5.0
โ”‚ โ”œโ”€โ”ฌ vite-plugin-environment@1.1.3
โ”‚ โ”‚ โ””โ”€โ”€ vite@5.2.11 deduped
โ”‚ โ”œโ”€โ”ฌ vite-plugin-ruby@5.0.0
โ”‚ โ”‚ โ””โ”€โ”€ vite@5.2.11 deduped
โ”‚ โ””โ”€โ”€ vite@5.2.11 deduped
โ””โ”€โ”€ vite@5.2.11

Screenshots ๐Ÿ“ท

image image