gpt4 book ai didi

macos - Lesscss 命令行编译器 Lessc

转载 作者:行者123 更新时间:2023-12-02 21:15:31 29 4
gpt4 key购买 nike

嗨,我正在尝试在 Mac 上安装 LessCss 命令行编译器。

我已经尝试过

brew install less
Error: No available formula for less

brew install lessc
Error: No available formula for lessc

sudo npm install -g less
..Installs happily..

sudo npm install -g lessc
npm http GET https://registry.npmjs.org/lessc
npm http 404 https://registry.npmjs.org/lessc
npm ERR! 404 'lessc' is not in the npm registry.

npm install less --global
..Installs happily..

npm install lessc --global
npm http GET https://registry.npmjs.org/lessc
npm http 404 https://registry.npmjs.org/lessc
npm ERR! 404 'lessc' is not in the npm registry.

我得到的只是

less js/less/style.less > style-theme.css
-bash: less: command not found

lessc js/less/style.less > style-theme.css
-bash: lessc: command not found

有人有这方面的经验吗?

<小时/>

我发现有人说我的路径变量可能被搞乱了。这:

/bin/echo $PATH

让我明白:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin

最佳答案

lesscnpm 包名称是 less

尝试写作

sudo npm install -g less

关于macos - Lesscss 命令行编译器 Lessc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18928028/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com