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

CLI error This: command not found #757

Open
splashsky opened this issue Jun 13, 2024 · 2 comments
Open

CLI error This: command not found #757

splashsky opened this issue Jun 13, 2024 · 2 comments

Comments

@splashsky
Copy link

I've installed lightningcss-cli globally for Node, for Bun, and even copied the binary from those directly to /usr/local/bin. Whenever I to execute the lightningcss binary, I get this error:
/home/sky/.bun/bin/lightningcss: line 1: This: command not found
I'm not sure what other steps to take, but I'd like to be able to use the project.

@trymeouteh
Copy link

I get this for an error when I install LightningCSS globally and try to use it in the terminal on Linux Mint.

$ sudo npm i -g lightningcss
$ lightningcss
lightningcss: command not found
$ 

I even tried to restart my computer and the lightningcss command still does not work.

LightningCSS does work when installed as a local dev package in your workspace folder and is accessible using npm scripts, but I would like to be able to use this globally as you can use other tools globally like Rollup when you install Rollup as a global npm package.

@DylanPiercey
Copy link

@trymeouteh I'm unsure about OP but for your issue I think you're installing the wrong package, it should be npm i -g lightningcss-cli.

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

3 participants