This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

mqttEndpoint An unhandled exception occurred! Exception origin: undefined Error: Cannot find module 'commander'

Hi,


I started working on the nRF Asset Tracker. Was able to complete documentation till the Install the nRF Asset Tracker into your AWS account (nordicsemiconductor.github.io/.../Index.html). When I'm trying to run the following command.

node cli info -o mqttEndpoint

I'm getting the error as
An unhandled exception occurred!
Exception origin: undefined
{ Error: Cannot find module 'commander'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/ubuntu/nrf-asset-tracker/aws/dist/cli/cli.js:50:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3) c
Could anyone help me with this, that'd be great.

Related