w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to load external node module in node-webkit application

In my case the problem has two reasons:

  1. If I want to use node modules, which written on C++, I can't give for my app custom name (in my case 'app'), I should use default name 'nw'. https://github.com/rogerwang/node-webkit/wiki/Using-Node-modules#3rd-party-modules-with-cc-addons

  2. As I understood, it's not possible to load modules into appliacation from external folder 'node_modules' using function 'require'.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.