Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install because of cli-high (requires bun) #1042

Open
fiws opened this issue May 24, 2024 · 2 comments
Open

Can't install because of cli-high (requires bun) #1042

fiws opened this issue May 24, 2024 · 2 comments

Comments

@fiws
Copy link

fiws commented May 24, 2024

Looks like cli-high is requiring bun. This is on npm 10.8.0. I think it does not happen on some older versions.

❯ npm install @million/lint@latest --save-dev
npm error code 1
npm error path /project/node_modules/cli-high
npm error command failed
npm error command sh -c npx only-allow bun
npm error ╔══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
npm error ║                                                                                                                              ║
npm error ║   Use "bun install" for installation in this project.                                                                        ║
npm error ║                                                                                                                              ║
npm error ║   If you don't have Bun, go to https://bun.sh/docs/installation and find installation method that suits your environment".   ║
npm error ║                                                                                                                              ║
npm error ╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
Copy link

Thanks for opening this issue! A maintainer will review it soon.

@wem1c
Copy link

wem1c commented May 29, 2024

I'll comment here instead of creating a new issue as I believe they may be related.

I seem to be encountering the same problem, but with the dependency called xycolors:

on  main [!⇡] conor  v22.0.0 ❯ pnpm install @million/lint@latest
 WARN  4 deprecated subdependencies found: [email protected], [email protected], [email protected], [email protected]
Packages: +42
++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1256, reused 1168, downloaded 0, added 0, done
node_modules/.pnpm/[email protected]/node_modules/xycolors: Running preinstall script...
 ELIFECYCLE  Command failed.

on  main [!⇡] conor  v22.0.0 ❯ ❌1     

If we go to the xycolors github repo and check package.json for the preinstall script:

"scripts": {
    ...
    "test": "bun test",
    "preinstall": "npx only-allow bun",
    "up": "taze major -I",
    ...
  },

only-allow is a package that is used to: "Force a specific package manager to be used on a project"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants