Set npm version in node attributes