user story #1447 - fixing npm first time run errors

Change-Id: Ibef01defddc7ce01aeb3aedb1369483b9a23e6b9