Node Newbie Error – NPM Refusing to Install Package as a Dependency of Itself
I encountered an error and thought I’d post the solution here since it just might happen to you sometime! Here’s the scenario: I was planning to take the winston npm module out for a spin to try out it’s awesome logging capabilities. I created a directory called winston to create a project and conduct the test. What would be more logical than that? 🙂 Next, I ran npm init to create a package.json file hitting my Enter key as fast as it could go to accept all the defaults for this throwaway test project: