ElMassimo / vite_ruby

⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience
https://vite-ruby.netlify.app/
MIT License
1.31k stars 121 forks source link

`npm bin` is removed in newer versions of NPM #462

Closed sawyerh closed 3 months ago

sawyerh commented 4 months ago

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