Elm Dependencies incompatibility with architechture.
Error on DCS app setup:
5.372 npm ERR! code 1
5.372 npm ERR! git dep preparation failed
5.372 npm ERR! command /usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/root/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
5.372 npm ERR! npm WARN using --force Recommended protections disabled.
5.373 npm ERR! npm ERR! code 1
5.373 npm ERR! npm ERR! path /root/.npm/_cacache/tmp/git-cloneXXXXXXkDLcDP/node_modules/elm
5.373 npm ERR! npm ERR! command failed
5.373 npm ERR! npm ERR! command sh -c node install.js
5.373 npm ERR! npm ERR! -- ERROR -----------------------------------------------------------------------
5.373 npm ERR! npm ERR!
5.373 npm ERR! npm ERR! I am detecting that your computer (linux_arm64) may not be compatible with any
5.373 npm ERR! npm ERR! of the official pre-built binaries.
5.373 npm ERR! npm ERR!
5.373 npm ERR! npm ERR! I recommend against using the npm installer for your situation. Check out the
5.373 npm ERR! npm ERR! alternative installers at https://github.com/elm/compiler/releases/tag/0.19.1
5.373 npm ERR! npm ERR! to see if there is something that will work better for you.
5.373 npm ERR! npm ERR!
5.373 npm ERR! npm ERR! From there I recommend asking for guidance on Slack or Discourse to find someone
5.373 npm ERR! npm ERR! who can help with your specific situation.
5.373 npm ERR! npm ERR!
5.373 npm ERR! npm ERR! --------------------------------------------------------------------------------
5.373 npm ERR!
5.373 npm ERR! npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2025-01-20T14_56_48_803Z-debug-0.log
5.374
5.374 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2025-01-20T14_56_44_295Z-debug-0.log
------
failed to solve: process "/bin/sh -c npm i elm-i18n@git+https://gitlab.i.onmercury.io/oss/elm-i18n.git#0.2.0" did not complete successfully: exit code: 1
Currently using:
- arm64 Apple Silicon Mac
- ProductName: macOS
- ProductVersion: 15.2
- BuildVersion: 24C101
ON DCS app when executing: ./script/setup
It fails on: RUN npm --prefix assets install
-> Docker.dev
In package.json
devDependencies
: like
"@parcel/transformer-elm": "^2.9.2"
"elm-i18n": "git+https://gitlab.i.onmercury.io/oss/elm-i18n.git#0.2.0"
when moving them both to optional dependencies the setup
is a success.
"optionalDependencies": {
"@parcel/transformer-elm": "^2.9.2",
"elm-i18n": "git+https://gitlab.i.onmercury.io/oss/elm-i18n.git#0.2.0"
}
In Docker.dev added:
RUN npm i @parcel/transformer-elm
RUN npm i elm-i18n@git+https://gitlab.i.onmercury.io/oss/elm-i18n.git#0.2.0
To check them separately, where actual error is.
Tried elm binaries from below links as well:
Edited by Zawar Khan