【無料廃止】Herokuから代替のRailway.appへRailsアプリ移行時に出たエラー
Railwayデプロイ時に発生。 #18 1.183 [1/5] Validating package.json... #18 1.188 error technews@0.1.0: The engine "node" is incompatible with this module. Expected version "v14.0.0". Got "16.17.0" #18 1.201 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. #18 1.201 error Found incompatible module. #18 ERROR: executor failed running [/bin/bash -ol pipefail -c yarn install --frozen-lockfile]: exit code: 1 ----- > [stage-0 14/19] RUN --mount=type=cache,id=s/dcf564ae-76f9-4ee8-a6e7-e9f94e909669-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile: ----- executor failed running [/bin/bash -ol pipefail -c yarn install --frozen-lockfile]: exit code: 1 Error: Docker build failed RailwayのbuilderであるNixpacks内のnodeのバージョンは 16.17.0。 プロジェクトのnodeは 14.0.0 。 この相違が原因なのでプロジェクト側のnodeのバージョンを 16.17.0 に上げてデプロイしなおせばOKです。
2022/10/04 19:14