Issue "Node packages are added to the array every run"

This fixes the issue "Node packages are added to the array every run"

I can't get the tests to pass locally for the main fork, so was unable to write any tests for this. Some help with that would be cool, if you want tests written for this.

#87