@julien-f said in Move build to use npm and Turbo:
should work on FreeBSD, what issues do you have?
The FreeBSD instructions has been contributed by the comm
It seems to me like they have explicitly excluded any platform that is neither windows nor linux (nor darwin):
root@xo:/srv/xo # yarn
yarn install v1.22.18
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "workspace-aggregator-9be715c1-80fc-4c5d-b807-b5414e3a3afa > @xen-orchestra/fs > @aws-sdk/lib-storage@3.241.0" has unmet peer dependency "@aws-sdk/abort-controller@^3.0.0".
warning Workspaces can only be enabled in private projects.
[5/5] Building fresh packages...
[1/20] ⢀ turbo
[6/20] ⢀ @fortawesome/fontawesome-common-types
[3/20] ⢀ highlight.js
[7/20] ⢀ vue-demi
error /srv/xo/node_modules/turbo: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /srv/xo/node_modules/turbo
Output:
/srv/xo/node_modules/turbo/node-platform.js:38
throw new Error(`Unsupported platform: ${platformKey}`);
^
Error: Unsupported platform: freebsd x64 LE
at pkgAndSubpathForCurrentPlatform (/srv/xo/node_modules/turbo/node-platform.js:38:11)
at checkAndPreparePackage (/srv/xo/node_modules/turbo/install.js:252:28)
at Object.<anonymous> (/srv/xo/node_modules/turbo/install.js:302:1)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
I have found this (seems it's the correct project):
https://github.com/vercel/turbo/pull/2408
and this:
https://github.com/vercel/turbo/issues/2339
I guess I could modify the sources, compile from sources with patches and make it to work somehow... but it's probably better to just move to linux.