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

Install for [ 'trakt-to-letterboxd@latest' ] failed with code 1 #709

Open
moshin34 opened this issue Nov 6, 2023 · 2 comments
Open

Install for [ 'trakt-to-letterboxd@latest' ] failed with code 1 #709

moshin34 opened this issue Nov 6, 2023 · 2 comments

Comments

@moshin34
Copy link

moshin34 commented Nov 6, 2023

Seems hard to mess up instructions this simple. Heres the error I receive.

administrator@PINGU:~$ npx trakt-to-letterboxd -u <USERNAME> -f test.csv

npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/administrator/.npm/_logs/2023-11-06T01_18_25_708Z-debug.log
Install for [ 'trakt-to-letterboxd@latest' ] failed with code 1
@moshin34
Copy link
Author

moshin34 commented Nov 6, 2023

Log file:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/bin/node',
1 verbose cli   '/usr/local/lib/node_modules/npx/node_modules/npm/bin/npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'trakt-to-letterboxd@latest',
1 verbose cli   '--global',
1 verbose cli   '--prefix',
1 verbose cli   '/home/administrator/.npm/_npx/6620',
1 verbose cli   '--loglevel',
1 verbose cli   'error',
1 verbose cli   '--json'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 1e0833e957e28a5c
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/trakt-to-letterboxd 28ms (from cache)
8 silly pacote tag manifest for trakt-to-letterboxd@latest fetched in 54ms
9 verbose stack TypeError: cb.apply is not a function
9 verbose stack     at /usr/local/lib/node_modules/npx/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
9 verbose stack     at FSReqCallback.oncomplete (fs.js:169:5)
10 verbose cwd /home/administrator
11 verbose Linux 6.2.0-36-generic
12 verbose argv "/usr/bin/node" "/usr/local/lib/node_modules/npx/node_modules/npm/bin/npm-cli.js" "install" "trakt-to-letterboxd@la>
13 verbose node v12.22.9
14 verbose npm  v5.1.0
15 error cb.apply is not a function
16 verbose exit [ 1, true ]

@ldoench
Copy link

ldoench commented Jan 8, 2024

Having the same problem. Had a clean server with fresh installed npm and npx.

The function in graceful-fs that triggers this error is following:

function statFix (orig) {
  if (!orig) return orig
  // Older versions of Node erroneously returned signed integers for
  // uid + gid.
  return function (target, cb) {
    return orig.call(fs, target, function (er, stats) {
      if (!stats) return cb.apply(this, arguments)
      if (stats.uid < 0) stats.uid += 0x100000000
      if (stats.gid < 0) stats.gid += 0x100000000
      if (cb) cb.apply(this, arguments)
    })
  }

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