Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Conversation

zkat
Copy link
Contributor

@zkat zkat commented May 15, 2017

No description provided.

@zkat zkat requested a review from iarna May 15, 2017 21:11
@zkat zkat force-pushed the zkat/multiproc branch 4 times, most recently from 210b10b to 33a2155 Compare May 18, 2017 23:54
@iarna iarna force-pushed the link-specifier branch 2 times, most recently from f4b6a2c to db76632 Compare May 26, 2017 01:56
@zkat zkat force-pushed the zkat/multiproc branch from 33a2155 to 3b01fa1 Compare May 27, 2017 06:00
@zkat zkat changed the base branch from link-specifier to release-next May 27, 2017 06:00
@zkat zkat force-pushed the zkat/multiproc branch 3 times, most recently from d24e332 to b86d2db Compare May 29, 2017 03:48
@zkat zkat force-pushed the zkat/multiproc branch 2 times, most recently from 86ea531 to 4d2a74d Compare June 2, 2017 02:59
@zkat zkat force-pushed the zkat/multiproc branch 2 times, most recently from 097b5c8 to 63c61a6 Compare June 2, 2017 05:28
opts.log = npmlog
opts.log.level = opts.loglevel
}
extract(spec, extractTo, opts).nodeify(cb)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract here may be returning a "vanilla" Promise from https://www.npmjs.com/package/promise-retry which is not a Bluebird promise, so it won't have a nodeify method.

This is spewing out all over the place with the current canary version (5.0.2-canary.10) which appears to have this code in it.

/Users/ryan/.nvs/node/8.0.0/x64/lib/node_modules/npmc/lib/install/action/extract-worker.js:15
  extract(spec, extractTo, opts).nodeify(cb)
                                 ^

TypeError: extract(...).nodeify is not a function
    at module.exports (/Users/ryan/.nvs/node/8.0.0/x64/lib/node_modules/npmc/lib/install/action/extract-worker.js:15:34)
    at handle (/Users/ryan/.nvs/node/8.0.0/x64/lib/node_modules/npmc/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ryan/.nvs/node/8.0.0/x64/lib/node_modules/npmc/node_modules/worker-farm/lib/child/index.js:47:3)
    at emitTwo (events.js:125:13)
    at process.emit (events.js:213:7)
    at process.nextTick (internal/child_process.js:755:12)
    at _combinedTickCallback (internal/process/next_tick.js:95:7)
    at process._tickCallback (internal/process/next_tick.js:161:9)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oop. Well, that's fun. Thanks for catching this. :)

@zkat zkat force-pushed the zkat/multiproc branch from 63c61a6 to c6b6754 Compare June 6, 2017 02:41
@zkat
Copy link
Contributor Author

zkat commented Jun 6, 2017

@rmg I've pushed a change to wrap it in a bluebird promise, and I've made a patch over in pacote to also make sure we return a Bluebird object from the retry. Thanks 🎉

@zkat zkat force-pushed the zkat/multiproc branch from c6b6754 to 83b5a1d Compare June 6, 2017 02:55
@zkat zkat force-pushed the zkat/multiproc branch from 83b5a1d to 8c55cec Compare June 10, 2017 20:33
@zkat zkat merged this pull request into release-next Jun 29, 2017
@zkat zkat deleted the zkat/multiproc branch June 29, 2017 01:45
zkat added a commit that referenced this pull request Jun 29, 2017
PR-URL: #16633
Credit: @zkat
Reviewed-By: @iarna
zkat added a commit that referenced this pull request Jun 29, 2017
zkat added a commit that referenced this pull request Jun 29, 2017
PR-URL: #16633
Credit: @zkat
Reviewed-By: @iarna
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants