卡饭网 > windows > 正文

windows下关于sublime text2,HTML/CSS/JS Prettify插件使用路径问题处理

来源:本站整理 作者:梦在深巷 时间:2013-06-18 16:51:45

问题在于格式化的时候就提示Node.js was not found in the default path.Please specify the location.点击确定跳到插件的配置,如下:

"node_path": "/usr/local/bin/",
"format_on_save": false

就去系统里找这个路径,没找着,上网搜了一下知道这个路径是Mac OS下才有的,Windows下的路径应该为:

"node_path": "C:/ProgramFiles/nodejs/node.exe",
"format_on_save": false

改了之后再格式化还是提示没找着路径,最后在stackoverflow上面看到是因为我的css文件存放路径有中文导致的.

最后,试验了一下,node_path 路径为"/usr/local/bin/" 也没问题.暂时还不清楚nodejs的配置问题.以后清楚了再来补充.

相关推荐