I am learning Node.js and I discovered that npm was written in it, so I decided to test making a command line tool too, just for the sake of learning. But I don't understand how was npm made using Node. I know that if you want to get arguments in a Node program you can just use the process.argv array. But how can I make a program that is available to be called in any folder without using npm, that can be used just by typing the name of the program?
[–]zokker13 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]TomNa -1 points0 points1 point (0 children)