I need advice to debug deploy Netlify App
There is a error complain when build gitbook internally cannot find the argument.
Blockquote
$ gitbook build
7:39:31 AM: Installing GitBook 3.2.3
7:39:59 AM: /opt/build/repo/node_modules/npm/node_modules/graceful-fs/polyfills.js:287
7:39:59 AM: if (cb) cb.apply(this, arguments)
Hello Hrishikesh,
Appreciate your prompt answer.
But in this case how to solve this situation, because deploy of this process is being executed background via Netlify.
Is it possible to make something to finish process?
Hi @Rodrigo_Rovere ,
I believe this is some problem with one of the dependencies that you might be using. You’re already using Node 16 (npm 7) and the issues above talk about Node 12 and 14 - so I believe it should not happen in 16 (but you can try changing Node versions to see if it works).
Other than that, you need to specifically check out these comments to see if they apply to you:
opened 03:22PM - 27 Jul 20 UTC
closed 03:32PM - 27 Jul 20 UTC
duplicate
npm
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.
* **Version**: 12.18.3
* **Platform**: linux 5.4.51-v7l+ #1327 SMP Thu Jul 23 11:04:39 BST 2020 armv7l GNU/Linux
* **Hardware**: Raspberry Pi 4 / 4 GB
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
opened 03:49PM - 23 Jul 20 UTC
* **Node.js Version**:
{
npm: '4.6.1',
ares: '1.16.0',
brotli: '1.0.7'… ,
cldr: '37.0',
icu: '67.1',
llhttp: '2.0.4',
modules: '83',
napi: '6',
nghttp2: '1.41.0',
node: '14.6.0',
openssl: '1.1.1g',
tz: '2020a',
unicode: '13.0',
uv: '1.38.1',
v8: '8.4.371.19-node.12',
zlib: '1.2.11'
}
* **OS**: Windows 10
* **Scope (install, code, runtime, meta, other?)**: runtime
I can not do anything with my npm as I keep receiving "error cb.apply is not a function"
- I have tried to clear the cache but it can not due to this error
- I removed everything to do with does and the tools it downloads with it and reinstalled with windows up to date then rebooted but still receive the same error
-i have tried npm doctor but failed due to this error
- I have checked the path is correct for nodejs and node_modules
How can i fix this issue?
Error chache information
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\allie\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install'
1 verbose cli ]
2 info using npm@4.6.1
3 info using node@v12.18.3
4 verbose config Skipping project config: C:\Users\allie/.npmrc. (matches userconfig)
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 verbose stack TypeError: cb.apply is not a function
7 verbose stack at C:\Users\allie\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:287:18
7 verbose stack at FSReqCallback.oncomplete (fs.js:169:5)
8 verbose cwd C:\Users\allie
9 verbose Windows_NT 10.0.19041
10 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\allie\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
11 verbose node v12.18.3
12 verbose npm v4.6.1
13 error cb.apply is not a function
14 verbose exit [ 1, true ]
If that still doesn’t help, I believe you might want to add to that issue to see if it’s a problem with Node and npm. You could also try using yarn to see if it makes a difference.