the "node_modules" [exec] directory when you copy the files over, and running "npm ci" or "npm install" [exec] on the destination platform after the copy. Or you could consider using yarn [exec] instead of npm which has built-in support for installing a package on multiple [exec] platforms simultaneously. [exec] [exec] If you are installing with yarn, you can try listing both this platform and the [exec] other platform in your ".yarnrc.yml" file using the "supportedArchitectures" [exec] feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures [exec] Keep in mind that this means multiple copies of esbuild will be present. [exec] [exec] Another alternative is to use the "esbuild-wasm" package instead, which works [exec] the same way on all platforms. But it comes with a heavy performance cost and [exec] can sometimes be 10x slower than the "esbuild" package, so you may also not [exec] want to do that. [exec] [exec] at generateBinPath (/builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/esbuild/lib/main.js:1841:17) [exec] at esbuildCommandAndArgs (/builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/esbuild/lib/main.js:1922:33) [exec] at ensureServiceIsRunning (/builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/esbuild/lib/main.js:2087:25) [exec] at build (/builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/esbuild/lib/main.js:1978:26) [exec] at bundleConfigFile (file:///builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/vite/dist/node/chunks/dep-5605cfa4.js:63043:26) [exec] at loadConfigFromFile (file:///builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/vite/dist/node/chunks/dep-5605cfa4.js:63019:31) [exec] at resolveConfig (file:///builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/vite/dist/node/chunks/dep-5605cfa4.js:62643:34) [exec] at doBuild (file:///builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/vite/dist/node/chunks/dep-5605cfa4.js:45554:26) [exec] at build (file:///builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/vite/dist/node/chunks/dep-5605cfa4.js:45543:22) [exec] at CAC. (file:///builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/lib/quarto/node_modules/vite/dist/node/cli.js:756:15) [exec] error Command failed with exit code 1. make[2]: Leaving directory '/builddir/build/BUILD/rstudio-2023.12.0-369/build' RPM build errors: BUILD FAILED /builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/build.xml:159: The following error occurred while executing this line: /builddir/build/BUILD/rstudio-2023.12.0-369/src/gwt/build.xml:117: exec returned: 1 Total time: 175 minutes 23 seconds make[2]: *** [src/gwt/CMakeFiles/gwt_build.dir/build.make:2695: src/gwt/timestamp] Error 1 make[1]: *** [CMakeFiles/Makefile2:459: src/gwt/CMakeFiles/gwt_build.dir/all] Error 2 make: *** [Makefile:159: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.k4632A (%build) Bad exit status from /var/tmp/rpm-tmp.k4632A (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/rstudio.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/rstudio.spec