Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx fails with "cb.apply is not a function" error #955

Closed
mssngr opened this issue Jan 14, 2021 · 1 comment
Closed

npx fails with "cb.apply is not a function" error #955

mssngr opened this issue Jan 14, 2021 · 1 comment
Labels
kind: support Asking for support with something or a specific use case scope: upstream Issue in upstream dependency solution: out-of-scope This is out of scope for this project

Comments

@mssngr
Copy link

mssngr commented Jan 14, 2021

Current Behavior

 ~ npx tsdx create test
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/p2813835/.npm/_logs/2021-01-14T22_09_17_505Z-debug.log
Install for [ 'tsdx@latest' ] failed with code 1

Expected behavior

It to actually create the test library.

Suggested solution(s)

Unsure what the actual problem is.

Additional context

I cleared my npm cache, but I realize, now, that npx doesn't even use my system's npm. It has it's own npm in a bin folder it uses.

Your environment

 ~ npx envinfo --system OS --browsers --binaries --npmPackages tsdx,typescript --npmGlobalPackages tsdx,typescript
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/p2813835/.npm/_logs/2021-01-14T22_19_52_679Z-debug.log
Install for [ 'envinfo@latest' ] failed with code 1

Well, that was unhelpful. Maybe this is an issue with npx, itself? I have also tried reinstalling npx, but I get the same results.

 ~ npx --version
10.2.2                                                                                                                                                                       /0.2s
 ~ node --version
v14.15.4                                                                                                                                                                     /0.1s
 ~
@mssngr
Copy link
Author

mssngr commented Jan 14, 2021

Referencing an issue I opened with npx: npm/npx#94

Seems this is an issue solely with npx.

@mssngr mssngr closed this as completed Jan 14, 2021
@agilgur5 agilgur5 added kind: support Asking for support with something or a specific use case solution: out-of-scope This is out of scope for this project labels Jan 14, 2021
@agilgur5 agilgur5 changed the title NPX Fails with "cb.apply is not a function" Error npx fails with "cb.apply is not a function" error Jan 14, 2021
Repository owner locked as off-topic and limited conversation to collaborators Jan 20, 2021
@agilgur5 agilgur5 added the scope: upstream Issue in upstream dependency label Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind: support Asking for support with something or a specific use case scope: upstream Issue in upstream dependency solution: out-of-scope This is out of scope for this project
Projects
None yet
Development

No branches or pull requests

2 participants