fixed npm v1.2.15 compatibility issue