«

cli 安装npminstall

emer 发布于 2022-5-12 12:07   1111 次阅读     


import npminstall from 'npminstall';

npminstall({
            root: this.targetPath,
            storeDir: this.storePath,
            registry: getNpmRegistry(),
            pkgs: [
                {
                    name: this.packageName,
                    version: this.packageVersion
                }
            ]
        });