问题描述
我想按顺序使用 yarn 命令并在节点脚本中运行它,在中间步骤中,并根据需要将其与 js 混合。例如
yarn audit > out.json
//some file reading,processing,and storage
for(i = 0; i < libs.length; i++) {
yarn add [email protected] //need to run this in a loop
//print the console output as this is being done
}
在node js或任何其他可以在node项目中使用的脚本中是否可以实现以上内容?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)