2 * node-sass: lib/errors.js
5 var sass = require('./extensions'),
6 pkg = require('../package.json');
8 function humanEnvironment() {
9 return sass.getHumanEnvironment(sass.getBinaryName());
12 function foundBinaries() {
14 'Found bindings for the following environments:',
19 function foundBinariesList() {
20 return sass.getInstalledBinaries().map(function(env) {
21 return ' - ' + sass.getHumanEnvironment(env);
25 function missingBinaryFooter() {
27 'This usually happens because your environment has changed since running `npm install`.',
28 'Run `npm rebuild node-sass` to build the binding for your current environment.',
32 module.exports.unsupportedEnvironment = function() {
34 'Node Sass does not yet support your current environment: ' + humanEnvironment(),
35 'For more information on which environments are supported please see:',
36 'https://github.com/sass/node-sass/releases/tag/v' + pkg.version
40 module.exports.missingBinary = function() {
42 'Missing binding ' + sass.getBinaryPath(),
43 'Node Sass could not find a binding for your current environment: ' + humanEnvironment(),
47 missingBinaryFooter(),