Yeoman on FreeBSD 9
Preface
In this post I will go through the steps I had to perform in order to get Yeoman up and running on relatively fresh installation of FreeBSD 9 with Xorg and Desktop Environment.
Check your system
Run curl -L get.yeoman.io | bash in order to see what dependencies you need to install. Since my commit 8630c44 was kindly merged into Yeoman’s master branch this step is possible on FreeBSD.
Install Dependencies
The list of dependencies may vary with time. Refer to Yeoman’s wiki for more up-to-date list.
Please note that there are alternative methods for installing software in FreeBSD so you decide what method to use when installing those dependencies, however following worked for me.
Install as root user:
Gitcd /usr/ports/devel/git && make install clean
PhantomJS (this may take a while)cd /usr/ports/lang/phantomjs && make install clean
NodeJScd /usr/ports/www/node && make install clean
Npmcd /usr/ports/www/npm && make install clean
Google Chrome (this may take a while)cd /usr/ports/www/chromium && make install clean
libyamlcd /usr/ports/textproc/libyaml && make install clean
optipngcd /usr/ports/graphics/optipng && make install clean
Install following as normal user:
Rvm + Ruby
Refer to https://rvm.io/rvm/install/ for installation instructions
Compassgem install compass
Verify Dependencies
Run curl -L get.yeoman.io | bash again to verify that you have completed the list of required dependencies.
Say hello to Yeoman
Finally, when all required dependencies are installed we’re ready (hopefully) to say hello to Yeoman:npm install -g yeoman
Known issues
- When I first initialized a yeoman project and executed
yeoman serverI got this scary error: v8::Context::New() V8 is no longer usable The solution was to executeyeoman buildat least once, since then I didn’t see this error - After a few files modifications yeoman couldn’t reload the page (opened in Opera) any more as there was this error: TypeError: Cannot call method ‘send’ of null The solution was to use Chromium instead of Opera (didn’t test with Firefox however)
Conclusion
Hope this post will be helpful to anyone besides myself.
If you followed this post and found any required steps that are not covered, please leave a comment below.
Tweetcomments powered by Disqus