Fix npm version compile error