TibbsT
Deno3y ago
Tibbs

Unable to find NPM:Rollup 4.1.4 on M1 Mac

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
Was this page helpful?