Skip to content
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

Remove Node-Sass Dependency #228

Closed
geggleto opened this issue Feb 9, 2015 · 6 comments
Closed

Remove Node-Sass Dependency #228

geggleto opened this issue Feb 9, 2015 · 6 comments

Comments

@geggleto
Copy link

geggleto commented Feb 9, 2015

Hi,

Is it possible to remove the node-sass dependency ? I have tried the last 3 stable branches and none of them build... The 2.0.0beta doesn't work either. Anyone new discovering this package will not be able to run it without first removing all of the node-sass components.

Related to #222

Thanks

@sahat
Copy link
Owner

sahat commented Feb 9, 2015

Hey @geggleto are you not able to install node-sass? That library uses native C++ extensions so if you are running on a machine without Xcode (mac), Visual Studio (Windows), build-essentials (Ubuntu), chances are you will not be able to install that package.

I only recently switched from LESS to Sass and would prefer to avoid rolling back to LESS. Agreed, it was a little easier with LESS because it doesn't have any C++ dependencies.

Mongoose and mongodb-native-driver, I believe also require a c++ compiler installed on your computer, so node-sass dependency is not just a one-off case.

The 2.0.0 Beta will not work with hackathon-starter yet since connect-assets does not currently support it.

@geggleto
Copy link
Author

geggleto commented Feb 9, 2015

Hi @sahat I was building on Centos 6.6 with the Development Tools group package. node-sass does not compile on my dev server or vagrant instance (both same versions as mentioned above) which has been incredibility annoying

While I understand that it is apart of the tool chain for this particular package, I do believe on a fundamental level that it should be easily disabled or at least made a non-core component. Perhaps some additional work in the setup.js file could accomplish this task.

I will continue however to try and find out how I can get the C++ dependencies to install in my particular distro (although I haven't found very many resources on it).

I would appreciate any guidance in how I can remove the node-sass from this package in the mean-time.

Thanks for the great package though!

@geggleto
Copy link
Author

geggleto commented Feb 9, 2015

Updating my gcc version fixed the issue with node-sass

@geggleto geggleto closed this as completed Feb 9, 2015
@sahat
Copy link
Owner

sahat commented Feb 9, 2015

Ah, it seems you had the same issue as me with one of the Docker containers. The gcc version was outdated which prevented me from installing the node-sass package. I ended up switching to LESS since I had no control of the gcc version on that server.

If you do however want to use LESS without all this Sass dependency nonsense you can grab all the assets from here:

https://github.com/sahat/hackathon-starter/tree/84387a6ca6582ae5c4d7078dfd1ca0667680e4c3/public/css

@geggleto
Copy link
Author

geggleto commented Feb 9, 2015

@sahat You sir rock. ty ... Might want to make this a bit more publicly visible somehow.

@geggleto
Copy link
Author

geggleto commented Feb 9, 2015

For those who find this...

http://superuser.com/questions/381160/how-to-install-gcc-4-7-x-4-8-x-on-centos

For CentOS gcc updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants