adjust http to https and config npm