node.jsubuntunpmgulpushahidi

NPM Install is not installing dependencies


I'm attempting to install the Ushahidi V3 Client. I've been following the install process up until when I need to build the project from the source repo using npm and gulp - both of which I've had zero experience with. Whenever I run sudo npm install in the project directory, the process runs without complaints. However, when I run npm ls to verify that dependencies have been downloaded, I get a bunch of dependencies listed out as being missing.

How do I get npm to resolve all of these dependencies?

System Details

OS Ubuntu 14.04 (Trusty)
Node JS v0.12.9
NPM v3.5.1

What I've tried


Solution

  • @Strainy, as your research :D

    It was a combination of running as sudo and not having the build-essentials.

    That's why you should not use sudo npm