Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm ERR! Cannot call method 'charAt' of undefined #7746

Closed
@mantoni

Description

With npm v2.7.4 I get this error:

npm ERR! git clone --template=~/.npm/_git-remotes/_templates \
  --mirror git://github.com/pipobscure/fsevents.git \
  ~/.npm/_git-remotes/git-github-com-pipobscure-fsevents-git-3baa7ac4
npm ERR! Linux 2.6.18-308.el5
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.10.38
npm ERR! npm  v2.7.4

npm ERR! Cannot call method 'charAt' of undefined

In the npm-debug.log there is this stack trace:

46611 verbose stack TypeError: Cannot call method 'charAt' of undefined
46611 verbose stack     at getResolved (/usr/lib/node_modules/npm/lib/cache/add-remote-git.js:357:14)
46611 verbose stack     at /usr/lib/node_modules/npm/lib/cache/add-remote-git.js:220:23
46611 verbose stack     at /usr/lib/node_modules/npm/lib/utils/git.js:26:8
46611 verbose stack     at ChildProcess.exithandler (child_process.js:656:7)
46611 verbose stack     at ChildProcess.emit (events.js:98:17)
46611 verbose stack     at maybeClose (child_process.js:766:16)
46611 verbose stack     at Socket.<anonymous> (child_process.js:979:11)
46611 verbose stack     at Socket.emit (events.js:95:17)
46611 verbose stack     at Pipe.close (net.js:466:12)

This error does not occur with npm v2.7.3.

node v0.10.38

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions