KumologicaHQ / kumologica-support

3 stars 0 forks source link

need to use md5 but the js node cannot find it #29

Closed kensowens closed 2 years ago

kensowens commented 2 years ago

https://www.npmjs.com/package/md5

In the js node I am trying to use

var md5 = require('md5'); return md5(msg.payload);

I get an error message back Cannot find module 'md5'

How do I allow Kumologica to find this module?

bjq-dev commented 2 years ago

Please add this module to package.json in your project directory. If you want to test it locally you may also need to run npm install in project directory, otherwise designer will install and package it during deployment.

You should source control package.json together with flow file.