Skip to content

'path.replace is not a function' error #5

@cliffano

Description

@cliffano

I've managed to retrieve releases just fine from using info command.
However, when I tried using upload command, I got this error:

/usr/local/lib/node_modules/node-github-release/node_modules/mime/mime.js:72
  var ext = path.replace(/^.*[\.\/\\]/, '').toLowerCase();
                 ^

TypeError: path.replace is not a function
    at Mime.lookup (/usr/local/lib/node_modules/node-github-release/node_modules/mime/mime.js:72:18)
    at /usr/local/lib/node_modules/node-github-release/node_modules/github/lib/index.js:846:52
    at FSReqWrap.oncomplete (fs.js:154:5)

I'm currently using node 10. Is there any specific supported node version for node-github-release?
The package.json file doesn't specify any min engine version.

$ node --version
v10.16.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions