These are chat archives for ushahidi/Community

9th
Dec 2015
Strainyy
@Strainyy
Dec 09 2015 02:16
Hi all, I'm having issues with the v3 client install on ubuntu trusty. I've installed nodejs v0.12.9 and npm v3.5.1. I've also installed gulp globally as per the documentation and "npm install" within the client directory appears to work okay (besides the warnings below). However, when it comes time to run "sudo gulp build" I continually get "Cannot find module" errors. Is there anything missing from the steps outlined in the support documentation that would assist me in getting the client up and running?
WARN deprecated URIjs@1.16.1: package renamed to "urijs" (lower-case), please update accordingly
npm WARN peerDependencies The peer dependency jasmine-core@* included from karma-jasmine will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency phantomjs@>=1.9 included from karma-phantomjs-launcher will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
Ushbot
@ushbot
Dec 09 2015 02:32
[Robbie Mackay, Ushahidi] Hey Strainyy
[Robbie Mackay, Ushahidi] Any reason you're running gulp with sudo? Thats probably going to end badly.
[Robbie Mackay, Ushahidi] any of the "WARN" lines should be OK. We have a few dependencies that need an update.. but they shouldn't break.
Strainyy
@Strainyy
Dec 09 2015 02:36
Hi Robbie, thanks for the response. I've run it without sudo and the same issue pops up.

The error I get on gulp build is:

module.js:338
    throw err;
          ^
Error: Cannot find module 'gulp-sass'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/var/www/platform-client/gulpfile.js:2:20)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)

If I manually install "gulp-sass" for instance (npm install gulp-sass), I just get another " Cannot find module 'x' " error :/