Skip to content
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

webpacker をインストールするために必要な Node.js のバージョンが満たされていない #10

Open
t-cool opened this issue Mar 2, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@t-cool
Copy link

t-cool commented Mar 2, 2022

Rails 6 の webpacker は、Node.js のバージョンは 10.19.0 以上が必要のようです。

sudo apk upgrade nodejs で 10.19.0 にアップグレードして対処しました。

@kyontanyk
Copy link

2024.4.15現在、nodejsが10.19.0でも下記エラーが表示され、環境構築を正常終了できない状況です。
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=12.0.0".

Dockerfileを覗いてみると、
FROM oiax/rails6-deps:latest
と書かれており、ベースOSが何か分かりませんでしたが、実際にはAlpine Linux v3.9でした。Alpine Linux内でnodejsをv12.0.0以上に上げたいのですが、その方法が分かりませんでした。
「Ruby on Rails6 実践ガイド」と「Ruby on Rails6 実践ガイド[機能拡張版]」を購入済みですが、最初の環境構築の段階で止まってしまいます。

@kuroda kuroda self-assigned this Apr 15, 2024
@kuroda kuroda added the bug Something isn't working label Apr 15, 2024
@kuroda
Copy link
Member

kuroda commented Apr 16, 2024

@kyontanyk

少々お時間をください。

@kyontanyk
Copy link

kyontanyk commented Apr 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants