'npm ERR! tb.match is not a function

I am having an issue installing csvtojson. When I run npm install csvtojson I'm getting npm error tb.match is not a function. How do I solve this?



Solution 1:[1]

Removing the lock file AND the node_modules folder worked for me. Try to remove them and run again npm install.

Solution 2:[2]

Remove package.lock and run npm install is working for me.

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 shalitha senanayaka
Solution 2 Mahdi Zarei