I have a working instance of openedx on mac m1 thanks to instructions from the documentation but I cannot set tutor-mfe up despite following instructions here.
thanks for the response. I changed the docker configuration but now I get this error:
#49 66.73 npm notice Run `npm install -g npm@8.19.2` to update!
#49 66.88 npm notice
#49 73.01 npm ERR! code ERR_SOCKET_TIMEOUT
#49 75.73 npm ERR! network Socket timeout
#49 75.73 npm ERR! network This is a problem related to network connectivity.
#49 75.73 npm ERR! network In most cases you are behind a proxy or have bad network settings.
#49 75.73 npm ERR! network
#49 75.73 npm ERR! network If you are behind a proxy, please make sure that the
#49 75.73 npm ERR! network 'proxy' config is set properly. See: 'npm help config'
#49 76.28
#49 76.28 npm ERR! A complete log of this run can be found in:
#49 76.28 npm ERR! /root/.npm/_logs/2022-09-18T20_14_30_716Z-debug-0.log
------
executor failed running [/bin/sh -c npm clean-install --no-audit --no-fund --registry=$NPM_REGISTRY && rm -rf ~/.npm]: exit code: 1
Error: Command failed with status 1: docker build -t docker.io/overhangio/openedx-mfe:14.0.0 /Users/hargunoberoi/Library/Application Support/tutor/env/plugins/mfe/build/mfe
Just want to mention that if anyone else faces the issues I’ve mentioned above, it maybe because of low memory. I increased the available memory for docker to 7 Gb and it worked fine.
I used 24gb RAM instance. In my case, I had an error with missing imagemin-pngquant. So I added libpng-dev package in mfe dockerfile and the problem is fixed.