Developers mostly like to take control of your machine and how things work on it. This time I decided to take control where NodeJS would restore my global packages and manages package cache. In this case I am referring to Windows 10 particularly as that is my core development platform. By default NodeJS gets installed in C:\Program Files\nodejs folder (assuming you are installing nodejs - Windows x64 version). After installation lets say I wish to install http-server package so I can run static HTTP server from any folder. As soon as I do npm install http-server -g, this start adding package and it's dependency packages into C:\Users\username\AppData\Roaming\npm and C:\Users\username\AppData\Roaming\npm-cache folder. So I wish to shift these two folders to different and custom location e.g: D:\nodejs. Let's do it! Step: Edit NPMRC file at follow location: C: » Read more

 Jsinh        

In continuation of Installing Ghost on Ubuntu, Nignx and MySQL - Part 2 Finally we arrive at the Ghost part mostly... Install Node.js sudo apt-get update curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs sudo apt-get install -y build-essential Step: Check node.js version (v4.5.0 - in my case). This will also install npm (node package manager - v2.15.9 - in my case). If by any case npm is not installed then do sudo apt-get install npm node -v npm -v Install MySQL sudo apt-get update sudo apt-get install mysql-client mysql-server This will install MySQL 5.7.13 by default, during installation process you will be prompted to enter / set password for the MySQL root user (make sure it is complex enough, do not ignore). You can always change password of your root user of » Read more

 Jsinh        

I am using DigitalOcean for hosting my Ghost blog. Any instance of hosting in DigitalOcean environment are called Droplets (wonder why?). Mostly setting up a Ghost blog in DigitalOcean environment is pretty much easy. But after few days I realized that the setup is good enough for 'getting up and running' and I had to fiddle and fix many thing to reach my satisfactory goals. Offcourse I give full credits to all articles and knowledge-base provied by DigitalOcean team. Things that makes me write up this lengthy post: Ghost ready droplet gives only basic setup of Ghost. Had to add more steps to secure my droplet to some extent. Wanted to host Ghost with MySQL instead of Sqlite3. Setup Ghost instance in a way so that I can add more Ghost instances or other websites in same droplet. I have divided this process into three part (this is Part 1 » Read more

 Jsinh