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