How to emulate a curl request using node-fetch module
Authorization header is wrong.
-u "client_id:secret"
says that curl is using a Basic Authentication.
You should add authorization header
Authorization: Basic <base64 encoded "client_id:secret">