API 参考
    正在准备搜索索引...

    变量 VipNpm常量

    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>;
    } = ...

    类型声明

    • 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>