D
Deno

help

Unable to find NPM:Rollup 4.1.4 on M1 Mac

TTibbs10/24/2023
Hi all, hooking up a new build process for UI project, trying to use Rollup on an M1 Mac. My build script starts with: import { rollup } from "npm:rollup@4.1.4"; import html from "npm:@rollup/plugin-html@1.0.3"; This works great on Deno for Windows, but on my M1 Mac, I get the following error in the terminal: error: Uncaught Error: Cannot find module '@rollup/rollup-darwin-arm64' Is it possible to force Deno to load the x86-64 version of the NPM package, and use the M1's compatibility layer, or otherwise get this package pulled down normally in a way that's compatible? Thanks, Tibbs
DAHDeno AI Helper10/24/2023
Based on the documentation, Deno has experimental support for the aarch64-apple-darwin target, which is the target for Apple's M1 processors. However, this support is built using Rust nightly and does not yet have automated CI processes to build and test this target. Therefore, it's possible that you might encounter issues when trying to use certain packages on an M1 Mac. The documentation does not provide a clear answer on how to force Deno to load the x86-64 version of the NPM package. However, it does mention that if you encounter any issues, you should file an issue on the Deno GitHub repository. As a general advice (which is not in the documentation), you might want to try using Rosetta 2 to run Deno under x86-64 emulation. This might allow you to load the x86-64 version of the NPM package. However, this is just a suggestion and might not work as expected. Remember to always stay updated with the latest Deno releases, as they might include improvements and fixes for running on M1 Macs. 🦕

Looking for more? Join the community!