My Profile Photo

Ratul Minhaz

I am a web developer based in Dhaka, Bangladesh. I use Python for data wrangling. I want to be an omniglot.

Setting up Ember CLI Sass

Trying to set up Sass with Ember can be quiet problematic if you are using a version manager for Node. For example I was using a version manager called ‘n’ and could not integrate Sass in anyway with my Ember app. It all boiled down to my Ember installation not finding libraries needed to compile Sass. These two modules were the reason of the problem: node-gyp and node-sass.

After fiddling around for a while I found out the proper way to setup Sass with Ember. First, ensure these are not installed in the project’s node_modules:

npm uninstall node-gyp
npm uninstall node-sass

Then install them again with the right version on Node:

n latest						# switch to the latest version of Node
npm install -g node-gyp
npm install -g node-sass
ember install ember-cli-sass	# this will install Ember addons for Sass