yarn3 报错 Usage Error: This command can only be used if the `nodeLinker` option is set to `pnp`

yarn unplug core-js 报错 Usage Error: This command can only be used if the `nodeLinker` option is set to `pnp`

yarn config get nodeLinker     // node_modules  需要改成 pnp

yarn config set nodeLinker pnp // ➤ YN0000: Successfully set nodeLinker to 'pnp'

yarn unplug core-js  // 成功

posted @ 2025-03-28 15:30  谁凭花解语  阅读(18)  评论(0)    收藏  举报