instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.41k stars 2.42k forks source link

./script/docker_dev_setup.sh fail under MAC OS #2284

Open timoconnor opened 7 months ago

timoconnor commented 7 months ago

Summary:

Steps to reproduce:

  1. Run ./script/tdocker_dev_setup.sh

Expected behavior:

Successful build

Actual behavior:

Logs are attached. Relevant bit:

18 [webpack 6/7] RUN npm install -g npm@latest && npm cache clean --force

18 1.116 npm ERR! code EBADENGINE

18 1.118 npm ERR! engine Unsupported engine

18 1.119 npm ERR! engine Not compatible with your version of node/npm: npm@10.2.3

18 1.119 npm ERR! notsup Not compatible with your version of node/npm: npm@10.2.3

18 1.119 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}

18 1.119 npm ERR! notsup Actual: {"npm":"8.19.4","node":"v16.20.2"}

18 1.120

18 1.120 npm ERR! A complete log of this run can be found in:

18 1.120 npm ERR! /root/.npm/_logs/2023-11-08T05_40_35_584Z-debug-0.log

18 ERROR: process "/bin/sh -c npm install -g npm@latest && npm cache clean --force" did not complete successfully: exit code: 1

7 [jobs internal] load metadata for docker.io/instructure/ruby-passenger:3.1

7 CANCELED

[Uploading docker_dev_setup.log…]()

drgrice1 commented 5 months ago

I am also seeing this same error on Ubuntu 22.04.

drgrice1 commented 5 months ago

Never mind my comment here. I see that this issue has been fixed after checking out a later branch.