Skip to content

TypeError: nm.init is not a function #9

@diegoribero

Description

@diegoribero

According to the docs, in order to test the library as a node module one should use:

const nm = require(’nm-api’);

nm.init()
.then((service) => {
  // do stuff with the instance
})
.catch((err) => {
  console.error('Something went wrong when starting nm-api service', err);
});

However, doing so fails with a "TypeError: nm.init is not a function"

image

Rpi3 on 2019-04-08-raspbian-stretch-lite.img
Node: 10.15.3
npm: 6.9.0

Metadata

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