1、配置less和sass的file watcher后,新建或编辑less或scss文件时,会有以下报错:

/home/zshanjun/node_modules/.bin/lessc --no-color 4-extend.less
/usr/bin/env: "node": 没有那个文件或目录

这是由于/home/zshanjun/node_modules/.bin/lessc源文件中,指定的node运行程序位置不对导致的,可以通过以下命令来解决:

To fix this you need to symlink the nodejs executable to node

sudo ln -s "$(which nodejs)" /usr/local/bin/node

If you installed node with nvm

sudo ln -s "$(which node)" /usr/local/bin/node



LESS SASS

登陆发表评论