fix npm path resolution