New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I tell which version of Sass is running with node-sass? #961
Comments
Hi, node-sass is a wrapper around libsass which is an alternate / substitute implementation of Sass language compiler written in C/C++, as opposed to the primary implementation in Ruby language. Going by sass/libsass#629, we can say LibSass' latest version (v3.2.4) fully conforms with Sass language v3.3 and majority of v3.4 features. In other words, the lines are blur from that perspective. Besides, (IMO) the language version is an implementation detail. However, from node-sass' consumer perspective, the more imperative and distinguishing detail is the LibSass version itself, which node sass emits as follow. From CLI: node-sass -v
# or, depending on cwd and env PATH status, you may need:
#
# node_modules/.bin/node-sass -v
# OR even
node -e "console.log(require('node-sass').info)"
# OR -p (processes && evaluates)
node -p "console.log(require('node-sass').info)" From code usage: var sass = require('node-sass');
console.log(sass.info); With latest node-sass, the output is: node-sass 3.1.1 (Wrapper) [JavaScript]
libsass 3.2.4 (Sass Compiler) [C/C++] Let us know if and how we can further improve this experience. |
@markweston also see my response #962 (comment) |
Another way to check the version of an indirect-dependency ( On CLI within your project directory where your
My current project outputs:
|
In case your node-sass (or any other module) is in node_modules dir, instead of this line: |
npm node-sass -v works well |
It only shows the npm version not the node-sass version i checked |
I found this command:
|
Hi,
This might sound like an odd question but I'm using gulp-sass, a wrapper for node-sass which in turn uses libsass.
I'm confused as to how I know which version of Sass I'm running. Does it simply correspond to the version of node-sass? I found this more self explanatory when using Ruby gems for sass.
Thanks.
The text was updated successfully, but these errors were encountered: