Skip to content

Instantly share code, notes, and snippets.

@albertosouza
Last active September 29, 2015 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save albertosouza/8af1c779253fce5c3988 to your computer and use it in GitHub Desktop.
Save albertosouza/8af1c779253fce5c3988 to your computer and use it in GitHub Desktop.
How to install we.js v0.3.x in Ubuntu
#!/bin/bash
#node
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install nodejs
#mysql
sudo apt-get install mysql-server mysql-client
#git
sudo apt-get install git
#graphicsmagick
sudo apt-get install graphicsmagick
#global npm packages
sudo npm install we yo generator-wejs -g
# fix npm cache owner
sudo chown -R [yourusername] ~/.npm
# test
# before create a mysql database with test name
git clone https://github.com/wejs/we-core.git
cd we-core
npm install
npm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment