1
我安裝了咖啡腳本,它通過終端工作正常。 我克隆並安裝了咖啡腳本的極端插件在這裏: https://github.com/jashkenas/coffee-script-tmbundleSublime Cofee腳本插件錯誤:EACCES,權限被拒絕'/.DocumentRevisions-V100'
我跟着自述說明:
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
現在,當我在崇高按指令B激活轉換......我得到以下錯誤:
/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:134
throw err;
^
Error: EACCES, permission denied '/.DocumentRevisions-V100'
at Object.fs.readdirSync (fs.js:654:18)
at compilePath (/usr/local/lib/node_modules/coffee-script/lib/coffee- script/command.js:128:20)
at compilePath (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:140:23)
at Object.exports.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:95:21)
at Object.<anonymous> (/usr/local/lib/node_modules/coffee-script/bin/coffee:7:41)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
[Finished in 0.1s with exit code 8]
我的猜測是,崇高沒有管理訪問權限。我知道如果我允許自己訪問,我會通過'sudo'工作,但是如何在這種情況下給予崇高的訪問權限?
謝謝你們!
-Will
你不需要給任何超級用戶訪問權限,這應該是現成的。您最近是否升級了節點'coffee-script'包?您可能想嘗試將其更新。 – MattDMo
我也建議嘗試一些其他插件,看看它是節點的錯誤還是插件的。安裝[Package Control](https://sublime.wbond.net),然後獲得['CoffeeScript'](https://sublime.wbond.net/packages/CoffeeScript)和['Better CoffeeScript'](https:/ /sublime.wbond.net/packages/Better%20CoffeeScript)包,並看看它們是如何工作的。他們的構建系統有不同之處,所以你可能比另一個更適合你。 – MattDMo