Search code examples
node.jsnpmarchlinuxghost-blog

Node.js' npm is installing the wrong package


I'm sorry for not posting the links to every thing I've quoted, stackoverflow won't let me :(

This a relatively bizarre error. I am trying to install the Ghost Blogging Platform in my nodejs project through npm, and the command for that is

npm install ghost

well, instead of installing the Ghost Blogging Platform, it installs this. Which makes no sense at all. The link I've reffered to is from a node modules website. There, it says that the command I've used was supposed to install this ecto/ghost thing and it links both to the git repository with the Ghost code I've accidentally installed and to the npm page for the Ghost Blogging Platform, which I wanted to install.

I believe this might be a misconfiguration with npm sources. I'm using an Arch Linux and I've installed both node and npm via git clonning the source and compiling it, as seen on this gist.

My npm version is 2.5.1 and my node version is v0.13.0-pre.

Thanks for any help. :)


Solution

  • just for the next guy who might find this problem. I really don't know what happened. I solved the problem by uninstalling and reinstalling node and npm in various different ways. Now it works fine. I was really tired by the time and had tried a lot of times so I really don't remember any details. Sorry :(