找到 SASS 可執行文件的位置。(使用 rbenv) (Find the location of the SASS executable. (using rbenv))


問題描述

找到 SASS 可執行文件的位置。(使用 rbenv) (Find the location of the SASS executable. (using rbenv))

I have a working SASS installation. I can run these commands in terminal and get this output:

sass ‑v
Sass 3.2.9 (Media Mark)

rbenv versions
  system
* 1.9.3‑p392 (set by /Users/Eric/.rbenv/version)
  2.0.0‑p0

I need to locate the exectuable so that I can provide it to the Webstorm IDE as a file watcher. http://blog.jetbrains.com/webide/2013/03/file‑watchers‑in‑webstormphpstorm‑6‑a‑k‑a‑background‑tasks/. I have set this up in other environments (windows, osx without rbenv) before, but can't figure out how to do it here.

If I run whereis sass, I get no output.

How do I find this executable and specify it for Webstorm?

Digging into rbenv, I see it here: /Users/Eric/.rbenv/versions/1.9.3‑p392/lib/ruby/gems/1.9.1/gems/sass‑3.2.9/bin/sass Specifying this path to webstorm does work. Is it appropriate/stable to reference this location directly, or is there a better way that doesn't depend on version numbers?


參考解法

方法 1:

This is a working answer for me:

/Users/Eric/.rbenv/versions/1.9.3‑p392/lib/ruby/gems/1.9.1/gems/sass‑3.2.9/bin/sass

It's not the best because I have to update the location when I upgrade SASS, but it's functional. Hope this helps someone else.

If someone knows of a symlink to the executable that is maintained through upgrades by rbenv or ruby, please share.

方法 2:

Use which sass instead of whereis. It should be in ~/.rbenv/bin location for you.

(by SimplGySimplGyextempl)

參考文件

  1. Find the location of the SASS executable. (using rbenv) (CC BY‑SA 3.0/4.0)

#webstorm #gem #SASS #rbenv






相關問題

找到 SASS 可執行文件的位置。(使用 rbenv) (Find the location of the SASS executable. (using rbenv))

如何在 webstorm 中使用 angular js (How to use angular js with webstorm)

Node 的 WebStorm 代碼完成顯示太多選項 (WebStorm code completion for Node shows too many options)

Webstorm JSX emmet 擴展 (Webstorm JSX emmet expansion)

無法在 node_modules (WebStorm) 中設置斷點 (Unable to set breakpoints inside node_modules (WebStorm))

Webstorm Meteor CSS 背景圖像位置 (Webstorm Meteor CSS Background Image Locations)

Webstorm 11 顯示有效代碼的編譯時打字稿錯誤 (Webstorm 11 shows compile-time typescript error for valid code)

WebStorm 和 TypeScript:如何導航到包的 JS 源文件? (WebStorm and TypeScript: how to navigate to JS source file of a package?)

有沒有辦法使用 WebStorm 中的調試器單步執行 RunJS 應用程序 (Is there a way to step through a RunJS app using the debugger in WebStorm)

IntelijIDEA (Goland) 使用 /private/var/folders/ (IntelijIDEA (Goland) uses /private/var/folders/)

無法將 WSL 節點解釋器添加到 WebStorm (Can't add WSL Node Interpreter to WebStorm)

禁止在 Nrwl Nx 的同一庫中導入桶文件 (Disallow barrel file imports within the same library in Nrwl Nx)







留言討論