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 neo-app breaks under mac os sonoma #14

Closed
tobiu opened this issue Oct 11, 2023 · 2 comments
Closed

npx neo-app breaks under mac os sonoma #14

tobiu opened this issue Oct 11, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@tobiu
Copy link
Contributor

tobiu commented Oct 11, 2023

in short: we have the inquirer dependency. this one has the dependency “@ljharb/through”: “^2.3.9". this one is using call-bind, without properly requiring it.

npm i does work, but inside the npx scope and sonoma it just crashes like this:

tobiasuhlig@iMac-Pro Desktop % npx neo-app@latest
node:internal/modules/cjs/loader:1048
const err = new Error(message);
^

Error: Cannot find module 'call-bind'
Require stack:

  • /Users/tobiasuhlig/.npm/_npx/49626c151eb2397b/node_modules/@ljharb/through/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object. (/Users/tobiasuhlig/.npm/_npx/49626c151eb2397b/node_modules/@ljharb/through/index.js:4:16)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at cjsLoader (node:internal/modules/esm/translators:284:17) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/Users/tobiasuhlig/.npm/_npx/49626c151eb2397b/node_modules/@ljharb/through/index.js'
    ]
    }

Node.js v20.8.0

i dropped the inquirer team a not, to re-evaluate if they even still need it.

SBoudrias/Inquirer.js#1317

@tobiu tobiu added the bug Something isn't working label Oct 11, 2023
@tobiu
Copy link
Contributor Author

tobiu commented Oct 11, 2023

as a workaround fix, i manually added the call-bind dependency into this package.json.

so v6.8.3 will work with sonoma. no guarantees for side effects on other os. i would love to get rid of the dependency again.

Screenshot 2023-10-11 at 10 44 09

@tobiu
Copy link
Contributor Author

tobiu commented Jun 20, 2024

resolved

@tobiu tobiu closed this as completed Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant