npx mongoimport --uri mongodb+srv://taherbalasinorwalaofficial:<MY PASSWORD>@cluster0.zh0w8hr.mongodb.net --collection products --type json --file ./static/products.json --jsonArray
>>
npm ERR! could not determine executable to run
I tried installing mongodb, mongodbtools but still not worked.
You can very well import products into your database using mongoimport.
Please take note, as @jonrsharpe has commented, mongoimport is a command line utility. You can run it either from command line of your operating system or from vscode terminal. Please do note that you simply give the following command which has only one difference from your version of code. The prefix npx is removed. The reason for this change is that npx is another command line utility, as you might know, it is used for npm packages updating.
In short, the command you try now is having two commands used for two different purposes. Therefore please change it as it has been explained.
mongoimport --uri mongodb+srv://taherbalasinorwalaofficial:@cluster0.zh0w8hr.mongodb.net --collection products --type json --file ./static/products.json --jsonArray
Thanks WoDoTheBest4You