HomeError: Cannot find module 'node:process' after Rollup upgrade

Error: Cannot find module 'node:process' after Rollup upgrade

Published: 5/18/2023

As silly as it gets, the solution is to upgrade your NodeJS version.

> rollup -c -w

internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module 'node:process'
Require stack:
- ...

My current version was 14.17.1, but after I upgraded to 14.21.1 the error was gone.

About Code with Node.js

This is a personal blog and reference point of a Node.js developer.

I write and explain how different Node and JavaScript aspects work, as well as research popular and cool packages, and of course fail time to time.