NPM node module connect problem

I had a problem to find module on npm list which was ‘ejs’ while I am trying to integrate React along with Express.

Recently, ejs is no longer coming along with Express on NPM. What you need to do is

npm install ejs -g

then if it is still having a problem to find ejs, link it using

npm link ejs

Enjoy!

Update NPM/NODE all the time!

Grrr..

I was working on React study with using gulp. I usually act on yeoman/grunt but I guess gulp is rising and need to use it.

So far it was totally okay to use gulp and serving ,at some point, on gulp brings whole knocked out.

The problem was solved next day with updating all packages globally.

Remember, When you use evolving platform/library, always do update npm and node.

Here is useful stackoverflow link.

http://stackoverflow.com/questions/8191459/how-to-update-node-js

Enjoy!

The Django Trial

**This is my personal note along with my studying. I am sorry that I am not really helpful if you look for some tutorials. I use my blog to memorise my techy archives.

I started to study Django more deeply since I use Python for data analysing and I may be able to build an app to visualise graphs along with those results.

I am currently having anaconda python for setups. I don’t know why I don’t have the anaconda python as default-it used to be. Hope to find a way to default it or…perhaps initialise my Mac in the future :/

Once again, to have my anaconda as default,


export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH"

export PATH="$HOME/anaconda/bin:$PATH"

After setting python 2.7.9, I made my virtual environment.


virtualenv lwc

cd lwc

source bin/activate

pip install django==1.6.5

django-admin.py startproject lwc

cd lwc

python manage.py runserver

python manage.py syncdb