Skip to content

node 12.18.3 fails with TypeError: cb.apply is not a function in graceful-fs #34529

@marcelgsteiger

Description

@marcelgsteiger

After upgrading my Raspberry Pi 4 today, my nodered app stopped operating. I get the error

TypeError: cb.apply is not a function
at ~/.node-red/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
at FSReqCallback.oncomplete (fs.js:169:5)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.

I then went back to 12.18.0 - which operates flawlessly, then to 12.18.2 with npm 6.14.5, this also works as expected.

npm list
/root
├─┬ @iekedemus/vulgar-fraction@1.0.0
│ └── greatest-common-divisor@1.0.0
├── graceful-fs@4.2.4
└── jsonata@1.8.3

Steps that caused the problem:

apt upgrade / apt update / npm update to current versions

Remarks:

I think this is a very recent issue but I do not know if I could reproduce it just by updating nodered. 25 packages were updated, including kernel and system firmware.

Regards
Marcel

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssues and PRs that are duplicates of other issues or PRs.npmIssues and PRs related to the npm client dependency or the npm registry.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions