Closed KingAmo closed 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.
你好,现在已经去掉了该配置,已经重新发布新包v2.0.1,欢迎体验:https://www.npmjs.com/package/vite-plugin-vconsole/v/2.0.1
package.json 中的脚本
preinstall": "npx only-allow pnpm
导致报错,我并没有安装pnpm
,为什么要强制使用pnpm
?