meanjs / generator-meanjs

MEAN.JS Official Yeoman Generator
http://meanjs.org/
473 stars 178 forks source link

Requires Ruby and Sass?? #202

Open kanethal opened 8 years ago

kanethal commented 8 years ago

Received the following error after running the generator (tried version 4.2 and master)

Running "env:dev" (env) task

Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
 Use --force to continue.

Ruby and Sass are not listed as requirements in the docs at http://meanjs.org/docs/0.4.x/ Are these requirements then? Or maybe I've done something horribly wrong... :(

ilanbiala commented 8 years ago

Yes they are requirements. Can you make a PR so others are aware?

kanethal commented 8 years ago

I would love to. But I'm a freaking newb and wouldn't know what to do... I'll try to educate myself on that later if I get some time On Feb 20, 2016 8:06 PM, "Ilan Biala" notifications@github.com wrote:

Yes they are requirements. Can you make a PR so others are aware?

— Reply to this email directly or view it on GitHub https://github.com/meanjs/generator-meanjs/issues/202#issuecomment-186728136 .

rof20004 commented 8 years ago

Try this:

$ sudo apt-get install ruby (if you have no one yet) $ sudo apt-get install ruby-compass $ sudo npm install grunt-compass --save-dev

kanethal commented 8 years ago

Thanks but I'm working in powershell On Feb 22, 2016 9:56 AM, "rof20004" notifications@github.com wrote:

Try this:

$ sudo apt-get install ruby (if you have no one yet) $ sudo apt-get install ruby-compass $ sudo npm install grunt-compass --save-dev

— Reply to this email directly or view it on GitHub https://github.com/meanjs/generator-meanjs/issues/202#issuecomment-187265055 .

rof20004 commented 8 years ago

Ok, then install ruby and execute?

gem install compass

kanethal commented 8 years ago

Right, I had Ruby once upon a time before I became interested in node. Trying to decide if I want to go with this solution On Feb 22, 2016 10:04 AM, "rof20004" notifications@github.com wrote:

Ok, then install ruby and execute?

gem install compass

— Reply to this email directly or view it on GitHub https://github.com/meanjs/generator-meanjs/issues/202#issuecomment-187269315 .

stephengtuggy commented 8 years ago

@rof20004 your instructions worked for me. Thanks.

I have Windows 10 (x64) as my main OS. I installed Ruby 2.2.4 x64 from http://rubyinstaller.org/downloads/. I used Git Bash as my command line environment (installed with GitHub Desktop for Windows). I opened Git Bash and ran "gem install compass". I was then able to run grunt with no issues, and view the boilerplate app in Firefox at localhost:3000 .

Note that I had some issues with yo in Git Bash. When I tried to use the arrow keys to choose which version of meanjs to generate, the visual indicator didn't move. I had to just press the down arrow twice and then press Enter, and trust that it chose meanjs version 0.4.2 correctly. (It did, from what I can tell.) Note also that before I did THAT, I had to install Node.js version 4.4.0, x64, from nodejs.org, and then run npm install -g npm to update to the latest version of npm. Otherwise I ran into all sorts of issues and warning messages.

I'm also trying the same thing in an Ubuntu 15.10 x64 VM under VirtualBox 5.0.16. I used your sudo apt-get, etc. commands to get going. It seems to be working, for the most part; I just need to install MongoDB still.

stephengtuggy commented 8 years ago

It turns out that the latest version of MongoDB, from mongodb.org, is not fully supported on Ubuntu 15.10, only on LTS versions of Ubuntu (such as 14.04). So I ended up setting up an Ubuntu 14.04 LTS x64 VM to run my MEAN application. Got it working!