How to 'include' a Node.js module?


I really dont understand why this must be so difficult?

I installed this package;

its directory is under ROOT/node_modules/woocommerce

But when I put var WooCommerce = require(‘woocommerce’); in my app.js;

Error: Module name “woocommerce” has not been loaded yet for context: _. Use require([])

I cannot find any docs howto include a Node.js module…