lessc: command not found

偶尔善良 提交于 2019-12-05 16:15:06
user568109

Just follow the steps :

  1. Make lessc executable by your user(permission denied means you dont have permission to run) like chmod 755 lessc
  2. Export the location of lessc into the PATH like export PATH=$PATH:/home/user/folder/path/less/bin (where lessc is present)
  3. 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?

If you enter just lessc, it is searched in the $PATH. For security reasons, the current directory is not in the $PATH. Try

./lessc bootstrap.less

or, if that doesn't work, simply

~/.npm/less/1.3.3/package/bin/lessc bootstrap.less

If you get a Permission Denied error then, you may need to mark the file as executable. Use

chmod a+x ~/.npm/less/1.3.3/package/bin/lessc

to do that. You may also need to call node directly, if it isn't in your $PATH.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!