一般用来调试npm package
yarn config dir获取全局以来安装位置$yarn_global_patchcd $yarn_global_patch/node_modules/modulex进入modulex内- 执行
yarn link - 执行成功了将会显示
success Registered "modulex". cd $project_path进入项目根目录yarn link modulex此时,项目下node_modules将会生成存在modulex- 此时
yarn release可以正常运行