Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Cannot install via npx - npm ERR! cb.apply is not a function #687

Open
1 task done
asheroto opened this issue Mar 25, 2021 · 1 comment
Open
1 task done

Cannot install via npx - npm ERR! cb.apply is not a function #687

asheroto opened this issue Mar 25, 2021 · 1 comment

Comments

@asheroto
Copy link

This project looks promising and I'd love to add our business to the partners, but sadly I cannot get it installed through the instructions.

node -v
v15.12.0
npm -v
7.6.0
npx -v
10.2.2

  • Cloned the repo
  • npx @statusfy/cli init
  • Returns...
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /logpath/log.log
Install for [ '@statusfy/cli@latest' ] failed with code 1
  • I confirm that this is a issue rather than a question.

Bug report

cat /etc/os-release
...

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian

Version

Latest as of 3/25/2021

Steps to reproduce

See above

What is expected?

Error message regarding cb.apply

What is actually happening?

Errors out, log file attached
2021-03-25T18_45_06_781Z-debug.log

Other relevant information

  • Your OS: Debian
  • Node.js version: 15.12.2
  • Browser version: Chromium 89
  • Is this a global or local install? global
  • Which package manager did you use for the install? apt / npm
@greenmaskenergy
Copy link

greenmaskenergy commented Sep 17, 2021

same issue can't run the npx command cb.apply not a function im running node 14...
on synology nas

node -v
v14.16.0

npm -v
6.14.11

npx -v
10.2.2

npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR! /var/services/homes/greenmaskenergy/.npm/_logs/2021-09-17T10_28_41_199Z-debug.log
Install for [ '@statusfy/cli@latest' ] failed with code 1

error log:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/volume1/@appstore/Node.js_v14/usr/local/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 '@statusfy/cli@latest',
1 verbose cli '--global',
1 verbose cli '--prefix',
1 verbose cli '/var/services/homes/greenmaskenergy/.npm/_npx/7525',
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 e3f3e8fa9f1b5840
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/@statusfy%2fcli 1622ms (from cache)
8 silly pacote tag manifest for @statusfy/cli@latest fetched in 1680ms
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:184:5)
10 verbose cwd /volume1/web/statusfy
11 verbose Linux 4.4.180+
12 verbose argv "/volume1/@appstore/Node.js_v14/usr/local/bin/node" "/usr/local/lib/node_modules/npx/node_modules/npm/bin/npm-cli.js" "install" "@statusfy/cli@latest" "--global" "--prefix" "/var/services/homes/greenmaskenergy/.npm/_npx/7525" "--loglevel" "error" "--json"
13 verbose node v14.16.0
14 verbose npm v5.1.0
15 error cb.apply is not a function
16 verbose exit [ 1, true ]

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

No branches or pull requests

2 participants