Fix npm.

This is a copy of the version we had in develop branch see if that runs.