Error: Cannot find module 'node:process' when using Node v14.x
thebinaryfelix opened this issue · comments
Problem
When using Node v14.x the command npx news-fragments create <fragment type> <fragment text>
breaks with message "Error: Cannot find module 'node:process'"
I have an alias defined as alias misc='npx news-fragments create misc'
By updating to Node v16.16.0 it works fine.
Suggestion
My suggestion is to update the Readme of the project indicating which version of Node we should use.
Using Node v14.x
Error occurs.
Using Node v16.x
Works fine.