首页 > 服务器 > Win服务器 > 正文

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

2020-06-08 13:56:20
字体:
来源:转载
供稿:网友

问题在于格式化的时候就提示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的配置问题.以后清楚了再来补充.

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表