我想讓Jsprettier在Sublime中工作,但是我設置的格式無法應用,因爲當我想保存文檔時(jsprettier:format failed),我總是收到一個錯誤。當我打開控制檯查看錯誤是什麼時,它說:系統找不到指定的路徑。 (CR)。JsPrettier不工作
在jsprettier的用戶設置選項卡的設置如下:
{
"prettier_cli_path": "/c/Users/Adri/AppData/Roaming/npm/prettier",
"node_path": "/c/Program Files/nodejs/node",
"auto_format_on_save": true,
"prettier_options": {
"printWidth": 120,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"parser": "flow",
"semi": true,
"tabs": false
}
}
謝謝
謝謝您的意見塔拉斯。我安裝了最新版本的Prettier(1.6.1),我仍然遇到同樣的問題... – Amogu