grupoboticario / news-fragments

An easy way to create your changelog file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Captura de Tela 2022-08-02 às 09 59 27

Using Node v16.x

Works fine.

Captura de Tela 2022-08-02 às 10 00 44