This version of Unity is unsupported.

PackageInfo.resolvedPath

Switch to Manual
public string resolvedPath;

Description

The local path of the project on disk.

The path points to the local directory containing the resolved package.