I am running the command './loadJson.js' but am facing this issue.
It was working fine until I tried to use this 'underscore.string/slugify'.I gave the npm install for the previous one and from then on am facing this issue.
element.forEach(function(elem)
{
timeStarted=moment(elem.started).fromNow();
if (timeStarted < "14 days ago")
{
console.log(elem.uri);
/data/slave/jenkins/workspace/parseJson/loadJson.js:28 element.forEach(function(elem) ^
ReferenceError: element is not defined at Object. (/data/slave/jenkins/workspace/parseJson/loadJson.js:28:1) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10)
This is the error I'm facing.
nodeis not defined. Itselementnot defined.