alexanderGugel / ied

:package: Like npm, but faster - an alternative package manager for Node
http://alexandergugel.github.io/ied
MIT License
1.99k stars 53 forks source link

primus module doesn't work because peerDependencies are unsupported? #161

Open juodumas opened 8 years ago

juodumas commented 8 years ago

The primus module doesn't work because it depends on eventemitter3 and asyncemit, while the latter has a peer dependency on eventemitter3, which ied doesn't install in asyncemit's node_modules/.

To reproduce:

npm init --yes
ied i primus --save
node -e "require('primus')"
module.js:442
    throw err;
    ^

Error: Cannot find module 'eventemitter3'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/u/ied-primus/node_modules/cc3e0fe0da39b53cc15e5b3aa8616ea6a72bd599/package/index.js:3:14)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)