medikoo / deferred

Modular and fast Promises implementation for JavaScript
ISC License
364 stars 20 forks source link

deferred does not install dependencies #31

Closed Tattoo closed 10 years ago

Tattoo commented 10 years ago

I included deferred to my node.js project in package.json. After doing npm install, my project dies with:

module.js:333
throw err;
      ^
Error: Cannot find module 'es5-ext/lib/Object/extend'
    at Function.Module._resolveFilename (module.js:331:15)
    at Function.Module._load (module.js:273:25)
    at Module.require (module.js:357:17)
    at require (module.js:373:17)
    at Object.<anonymous> (/my/project/node_modules/deferred/lib/index.js:8:14)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:349:32)
    at Function.Module._load (module.js:305:12)
    at Module.require (module.js:357:17)
medikoo commented 10 years ago

Please provide more details. It's totally unclear what you mean.

Tattoo commented 10 years ago

I accidentally hit enter when I didn't mean to. original issue updated

medikoo commented 10 years ago

It looks you have some uneven state in npm cache, that is most likely caused by this bug: https://github.com/npm/npm/issues/4042

Please do:

$ npm cache clean
$ rm -rf node_modules/deferred
$ npm install

All should be fine after that

medikoo commented 10 years ago

Other question is, which version of deferred you refer to in package.json?

Tattoo commented 10 years ago

Yeah it seems my npm is completely wonky. Thanks for the help!