我是靠谱客的博主 悦耳斑马,这篇文章主要介绍lessc_lessc:找不到命令,现在分享给大家,希望可以做个参考。

I'm on OS X.8 and a newbie at Node & LESS. I thought I installed lessc earlier and when I go to /usr/local/bin I see lessc

but for the life of me, I can't run it. Anytime I do run it, I see

-bash: lessc: command not found

So I've tried the tip here which has the following:

ln -s ~/.npm/less/1.3.3/package/bin/lessc my/local/dir

My local dir happens to be on a second drive on my laptop, here's the path:

/Volumes/Mac17/Users/denis2/Sites/staging/assets/less

With all that said, I try and run:

lessc boostrap.less

and still get

-bash: lessc: command not found

I'm totally lost here and any help would be tremendous.

解决方案

Just follow the steps :

Make lessc executable by your user(permission denied means you dont have permission to run) like chmod 755 lessc

Export the location of lessc into the PATH like export PATH=$PATH:/home/user/folder/path/less/bin (where lessc is present)

Use lessc lessc boostrap.less

You should put PATH export in environment so that you dont have to do it every time you login See here :

Setting environment variables in OS X?

最后

以上就是悦耳斑马最近收集整理的关于lessc_lessc:找不到命令的全部内容,更多相关lessc_lessc内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(136)

评论列表共有 0 条评论

立即
投稿
返回
顶部