-
Notifications
You must be signed in to change notification settings - Fork 3k
npm ERR! Cannot call method 'charAt' of undefined #7746
Comments
@mantoni I don't suppose there is a command I can run to reproduce this? |
As the error message suggests, it seems to happen when npm clones this git url: git://github.com/pipobscure/fsevents.git I didn't find the time to put a reproducible example together. It must have been introduced with the latest patch release since it works fine with the version before. |
@mantoni Okay. I'm on Linux and At the very least, the repository is successfully cloned for me on 2.7.4: https://gist.github.com/KenanY/e15cd48fe46b4af354ee |
Aaah, I'm was using Linux as well, but the clone might have failed due to our proxy at work. I'll try on OS X tonight as well and otherwise see whether I can put something reproducible together tomorrow. |
This was a weird little bug, and would be difficult for anyone not very well-versed in the internals of npm (and the Node URL parser) to reproduce. Some versions of Node don't deal well with certain classes of Git URL (sticking |
Oh wow. Thanks for the quick fix @othiym23. |
i have the same issue as well, that has worked up until problem is... one of my deps is a private repo that has only seemed to work with
however when changing it to
|
|
With npm v2.7.4 I get this error:
In the
npm-debug.log
there is this stack trace:This error does not occur with npm v2.7.3.
node v0.10.38
The text was updated successfully, but these errors were encountered: