vadxq / vite-plugin-vconsole

vite2/3/4/5 plugins vconsole
MIT License
75 stars 8 forks source link

为什么只允许 pnpm ? #19

Closed KingAmo closed 1 year ago

KingAmo commented 1 year ago

package.json 中的脚本 preinstall": "npx only-allow pnpm导致报错,我并没有安装 pnpm,为什么要强制使用 pnpm

vadxq commented 1 year ago

你好,想问一下是在什么情形会触发这个报错啊?

KingAmo commented 1 year ago

你好,想问一下是在什么情形会触发这个报错啊?

我们的 CI 执行 vite build 命令的时候:

ERROR /var/lib/jenkins/workspace/xxx/node_modules/vite-plugin-vconsole: Command failed.
Exit code: 1
Command: npx only-allow pnpm
Arguments: 
Directory: /var/lib/jenkins/workspace/xxx/node_modules/vite-plugin-vconsole
Output:
npx: installed 20 in 2.759s
╔═════════════════════════════════════════════════════════════╗
║                                                             ║
║   Use "pnpm install" for installation in this project.      ║
║                                                             ║
║   If you don't have pnpm, install it via "npm i -g pnpm".   ║
║   For more details, go to https://pnpm.js.org/              ║
║                                                             ║
╚═════════════════════════════════════════════════════════════╝
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
vadxq commented 1 year ago

你好,现在已经去掉了该配置,已经重新发布新包v2.0.1,欢迎体验:https://www.npmjs.com/package/vite-plugin-vconsole/v/2.0.1