Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7430

weinre does not play nice with npm dedupe

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: cordova-weinre
    • Labels:
    • Environment:

      Ubuntu, node.js 0.10.31

      Description

      Weinre breaks if you dedupe your node dependencies. This happens because weinre assumes that coffee-script is located in the local node_modules folder, which might not be the case after npm dedupe.

      Error: Cannot find module '/Users/erikn/Code/eagle-ng/node_modules/grunt-weinre/node_modules/weinre/node_modules/coffee-script'
      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> (/Users/erikn/Code/eagle-ng/node_modules/grunt-weinre/node_modules/weinre/weinre:34:1)
      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 Function.Module.runMain (module.js:497:10)

        Attachments

          Activity

            People

            • Assignee:
              pmuellr Patrick Mueller
              Reporter:
              ralphtheninja Magnus Skog
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: