Join GitHub today
Errors running npm 1.1.49 and 1.1.59 #2751
I'm running into errors running npm bundled with node ≥ 0.8.7 (1.1.49 +) on OS X 10.8. I manage my node installs locally with nvm.
Here is the error (happens if i just run
npm 1.1.48 (bundled with node v0.8.6) works without issue.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
So, I investigated this a bit further. It's definitely an issue with npmconf (I can move the ticket if you want, but since it's already started…)
The contents of my .npmrc file are:
It's definitely an old file. It looks like Conf.add is creating a buffer for auth from that file. Since auth is undefined, the crash ensues. I'm not sure of the history here so I don't feel comfortable submitting a patch that just checks for undefined, but that does fix the issue locally (as does authenticating or removing the .npmrc file).