February 09, 2013
Installing Mojito should be a simple task using Ubuntu’s Package manager… Install the required node and npm dependancies
$ sudo apt-get install nodejs nodejs-dev nodejs-legacy npm
Update npm:
$ sudo npm install -g npm
Clear npm cache:
$ sudo npm clear cache
Install Mojito:
$ sudo npm install mojito -g
If you get an error similar to:
npm ERR! error installing js-yaml@1.0.2
npm ERR! error installing mojito@0.5.3-1
npm ERR! Error: ENOENT, chmod '/usr/local/lib/node\_modules/mojito/node\_modules/js-yaml/bin/js-yaml.js'
...
Remove the yaml directory:
$ rm -rf ~/.npm/js-yaml
And clear the cache:
$ sudo npm clear cache
Then re-attempt the installation:
$ sudo npm install mojito -g
Now, Enjoy those tasty Mojitos!
Jess Telford
🛠 @ceteio: Tools for organizing local structured meetups
🎤 Host @CodeHeartDesign & @ReactSydney
🗓 Ex: FE Arch Domain/Groupon/Yahoo7