This version of Unity is unsupported.

PackageInfo.packageId

Switch to Manual
public string packageId;

Description

Identifier of the package.