I installed nodejs v0.12.6
on my computer with windows
however I had some problems.
I first found a solution on the internet very simple and thought that everything would work normally however when trying to install some package, in this case the hexo it installs perfectly however when trying to run the command it returns the following message:
'hexo' is not recognized as an internal or external command, operable program or batch file.
However when accessing the directory of npm
where hexo
was installed, in my case C:\Program Files\nodejs\node_modules\npm
and execute the command that initializes a blog using hex:
hexo init blog
Within this directory:
C:\Program Files\nodejs\node_modules\npm>hexo init blog
INFO Copying data to C:\Program Files\nodejs\node_modules\npm\blog
INFO You are almost done! Don't forget to run 'npm install' before you start blogging with Hexo!
It installs and generates files perfectly.
Is there any way to fix this? I need it to recognize the command regardless of which directory I am in, since the npm
directory is not a suitable place.