Skip to content

Can't get this to work without changing the code. Semver is not callable #74

Description

@wadlo

Trying to use this, and it's failing saying it can't run semver as a function. I tracked it down to this code:

      if (version) {
        programInfo.version = semver(version);
      }

If I change it to

      if (version) {
        programInfo.version = new semver.SemVer(version);
      }

it does work.

I'm pretty new to npm and node, so I'm probably doing something wrong...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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