'How to handle a cli command that exists in Python and NodeJS in windows

I involve in the development of multiple projects and they use different tech stacks. There is a cli script that invokes a command dotenv which exists in Python as well as in a React project (installed through npm package).

So when I try to use dotenv command in the React app scripts it executes the the command from the python library. Is there a way to handle this scenario in windows?

How do I configure so that these libraries uses the command that executes based on the language?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source