You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Magnus Skog (JIRA)" <ji...@apache.org> on 2014/08/29 14:24:53 UTC
[jira] [Commented] (CB-7430) weinre does not play nice with npm
dedupe
[ https://issues.apache.org/jira/browse/CB-7430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14115193#comment-14115193 ]
Magnus Skog commented on CB-7430:
---------------------------------
I have a fix for this in the following PR on github:
https://github.com/apache/cordova-weinre/pull/9
> weinre does not play nice with npm dedupe
> -----------------------------------------
>
> Key: CB-7430
> URL: https://issues.apache.org/jira/browse/CB-7430
> Project: Apache Cordova
> Issue Type: Bug
> Components: weinre
> Affects Versions: 2.0.0
> Environment: Ubuntu, node.js 0.10.31
> Reporter: Magnus Skog
> Assignee: Patrick Mueller
> Priority: Minor
> Labels: node.js, npm
>
> 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)
--
This message was sent by Atlassian JIRA
(v6.2#6252)