VipNpm: { formatVersionStr: (template: string, newVersion: string) => string; getNodeVersion: () => Promise<null | string>; getNpmVersion: () => Promise<null | string>; getPackageJSONByPnpm: (pnpmLsCommand: string) => PackageJSONWithPath[]; getPnpmVersion: () => Promise<null | string>; getTurboPackApps: () => Promise<string[]>; getTurboPackVersion: () => Promise<null | string>; installByNpm: ( args: { cwd?: string; force?: boolean; registry?: string }, ) => Promise<void>; installByPnpm: ( args: { cwd?: string; force?: boolean; registry?: string }, ) => Promise<void>; isExistNodeJs: () => Promise<boolean>; isExistNpm: () => Promise<boolean>; isExistPnpm: () => Promise<boolean>; isExistTurboPack: () => Promise<boolean>; userLogin: (args: { registry: string }) => Promise<void>;} = ... 类型声明
getNodeVersion: () => Promise<null | string>
getNpmVersion: () => Promise<null | string>
getPackageJSONByPnpm: (pnpmLsCommand: string) => PackageJSONWithPath[]
getPnpmVersion: () => Promise<null | string>
getTurboPackApps: () => Promise<string[]>
getTurboPackVersion: () => Promise<null | string>
installByNpm: (args: { cwd?: string; force?: boolean; registry?: string }) => Promise<void>
installByPnpm: (args: { cwd?: string; force?: boolean; registry?: string }) => Promise<void>
isExistNodeJs: () => Promise<boolean>
isExistNpm: () => Promise<boolean>
isExistPnpm: () => Promise<boolean>
isExistTurboPack: () => Promise<boolean>
userLogin: (args: { registry: string }) => Promise<void>