限制使用yarn安装依赖

469 阅读1分钟

在 package.json 中使用 添加钩子 

"scripts": {"preinstall": "npx only-allow yarn"},