fix when latest version is a SNAPSHOT on npmregistry