user story #1447 - fixing npm first time run errors

Change-Id: I18bfdd6650370c3091cfc3d74a618c59a23b253e