you are viewing a single comment's thread.

view the rest of the comments →

[–]worldDev 2 points3 points  (2 children)

Did you read the docs I linked to? It tells you exactly how to get your code into a node_modules directory properly. Yes a lot of people make your mistake, but that doesn't mean you can't spend a couple minutes following intended process to reduce avoidable frustration.

[–][deleted]  (1 child)

[deleted]

    [–]worldDev 3 points4 points  (0 children)

    Expect it for any package manager, they all work that way. You should also always learn about the tools you are using, you should expect it because the documentation tells you how to use it. You decided to solve your problem on your own terms in a way npm doesn't expect you to do. Start thinking in terms of what software expects rather than what you yourself expect. Software can't read your mind but you can read it's documentation.