Skip to content

Unable to install vite_rails with rails minimal installation #72

Answered by ElMassimo
ekremkaraca asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Ekrem!

During the install command, the library uses @antfu/ni in order to infer which package manager you are using.

It should be possible to make that command interactive in the future, at the moment based on your experience it skips installation which is not ideal.

The prompt would be skipped if you already had a yarn.lock file (which is always there on a "regular" Rails installation).

A workaround for clean installs would be to create a yarn.lock or similar file for your preferred package manager, and run bundle exec vite install later.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ekremkaraca
Comment options

@ElMassimo
Comment options

Answer selected by ekremkaraca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants