Use third party modules from npmjs.com

Develop and Deploy Native Apps for Windows, OS X, Linux, Unix ...

Use third party modules from npmjs.com

Postby wahono77 » Thu Sep 26, 2013 2:31 am

I use module https://npmjs.org/package/getmac and I have install it using command npm install getmac from my project folder.
The result I got new folder node_modules/getmac.

But, when I call this module from :
require('getmac').getMac(function(err,macAddress){
if (err) throw err;
console.log(macAddress);
});

I got message that this module can not be found.

Where package.json files for every project stored?

Thanks
wahono77
 
Posts: 90
Joined: Sat Apr 13, 2013 6:04 am

Re: Use third party modules from npmjs.com

Postby support » Thu Sep 26, 2013 9:01 am

The package.json file can't be changed now, but I'll separate it out in the next version.
support
 
Posts: 352
Joined: Sat Apr 27, 2013 9:22 am


Return to CrossUI for Desktop Apps

Who is online

Users browsing this forum: No registered users and 0 guests

cron