-
Notifications
You must be signed in to change notification settings - Fork 21.9k
rails new
doesn't install required npm dependencies
#54992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I figured out the problem. I had upgraded Node to the latest minor version with It might be a good idea to have |
@j127 maybe this is an improvement you can make at jsbundling-rails? Or maybe even moving this issue there? |
Does |
@j127 if you use |
Thanks, I'll search around in the code and see if I can figure out how it works. |
I moved it here for now, so I'll close this issue. |
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce
Create a new Rails project like this:
Run:
Expected behavior
The command should succeed and the server should be running, because
bin/setup
runsbin/dev
.Actual behavior
The command fails because there aren't any npm dependencies installed.
Here's the
package.json
-- shouldn't tailwind and esbuild be there (edit: and hotwire dependencies)?Edit: here are some more logs -- it's running
yarn add
but the dependencies aren't found inpackage.json
:System configuration
Rails version: 8.0.2
Ruby version: ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [arm64-darwin24]
(M1 MacBook)
The text was updated successfully, but these errors were encountered: