cli 安装npminstall
import npminstall from 'npminstall';
npminstall({ root: this.targetPath, storeDir: this.storePath, registry: getNpmRegistry(), pkgs: [ { name: this.packageName, version: this.packageVersion } ] });
相关文章
import npminstall from 'npminstall';
npminstall({ root: this.targetPath, storeDir: this.storePath, registry: getNpmRegistry(), pkgs: [ { name: this.packageName, version: this.packageVersion } ] });