Wednesday, 11 March 2015

codeship bower error and solution



Recently I got this error on codeship of my angularjs project:

bower install0 min 2 sec
module.js:340 throw err; ^ Error: Cannot find module 'rx' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/home/rof/.nvm/v0.10.32/lib/node_modules/bower/node_modules/insight/node_modules/inquirer/lib/utils/utils.js:8:10) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)




The solution is remove below line in your codeship scripts:


npm install bower -g

I think recently, codeship changes their server, and default bower install may give wrong bower version.

I put this "npm install bower-g", because I had bower issues before. I can't get bower in codeship. Even I have bower configured in package.json. So I put "npm install bower-g" in codeship script as a workaround.

Apparently,  codeship have fixed their issue!!!!!



1 comment:

  1. Informative blog.
    and also we are providing E-Learning Portal Videos for students and working Professionals
    Hurry Up! Bag All Courses in Rs - 10000 /- + taxes
    41 Career building courses.
    Designed by 33 industrial experts
    600+ hours of video Content
    DevOps and Cloud E-Learning Portal

    ReplyDelete