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

Error resolving dependency (?) #6

Open
Fishrock123 opened this issue Sep 5, 2019 · 4 comments
Open

Error resolving dependency (?) #6

Fishrock123 opened this issue Sep 5, 2019 · 4 comments

Comments

@Fishrock123
Copy link

$ delice
/Users/Jeremiah/npm/lib/node_modules/delice/node_modules/yargs/yargs.js:1163
      else throw err
           ^

Error: ENOENT: no such file or directory, stat 'node_modules/.bin/detect-libc'
    at Object.statSync (fs.js:856:3)
    at /Users/Jeremiah/npm/lib/node_modules/delice/node_modules/liblice/lib/recursiveFileSearch.js:7:55
    at Array.filter (<anonymous>)
    at getFilePaths (/Users/Jeremiah/npm/lib/node_modules/delice/node_modules/liblice/lib/recursiveFileSearch.js:7:32)
    at /Users/Jeremiah/npm/lib/node_modules/delice/node_modules/liblice/lib/recursiveFileSearch.js:9:64
    at Array.reduce (<anonymous>)
    at getFilePaths (/Users/Jeremiah/npm/lib/node_modules/delice/node_modules/liblice/lib/recursiveFileSearch.js:9:29)
    at /Users/Jeremiah/npm/lib/node_modules/delice/node_modules/liblice/lib/recursiveFileSearch.js:9:64
    at Array.reduce (<anonymous>)
    at getFilePaths (/Users/Jeremiah/npm/lib/node_modules/delice/node_modules/liblice/lib/recursiveFileSearch.js:9:29) {
  errno: -2,
  syscall: 'stat',
  code: 'ENOENT',
  path: 'node_modules/.bin/detect-libc'
}

Looks like some dependency this module needs is unmet? Maybe?

@bnb
Copy link
Member

bnb commented Sep 5, 2019

AFAIK it doesn't seem to be that. This error is referring to code in liblice that works and exists. It walks the node_modules on disk rather than doing network requests, so my guess is that something in your node_modules at the location specified in the path of that error output (last line) is tripping up that functionality.

For reference, it doesn't currently seem like detect-libc is in the dep tree:

$ npm ls detect-libc

[email protected] /Users/cyren/GitHub/delice
└── (empty)

Would you be able to share whatever is in your node_modules/.bin/detect-libc and – if at all possible – how that's introduced?

@Fishrock123
Copy link
Author

node_modules/.bin/detect-libc is ENOENT. It does not exist.

The project I am running this on certainly does not need to detect libc and neither should delice.

@Fishrock123
Copy link
Author

Fishrock123 commented Sep 5, 2019

$ npm ls detect-libc
[email protected] /Users/Jeremiah/Documents/nodesource/ncm-cli
└── (empty)

You can try it on that repository if you'd like. https://github.com/nodesource/ncm-cli

@bnb
Copy link
Member

bnb commented Nov 14, 2019

FWIW this should be fixed in [email protected] which just shipped. Need to update delice still, but hoping to do that soonish :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants