npm ERR! asyncWrite is not a function

What I Wanted to Do

Run npm install — it does not work for installing any package

What Happened Instead

npm ERR! asyncWrite is not a function
npm ERR! pna.nextTick is not a function

Reproduction Steps

npm i -g rimraf
— or trying to install anything.

Details

Windows 10 Pro 1809 64-bit

2 info using npm@6.4.1
3 info using node@v10.15.3

0 info it worked if it ends with ok
1 verbose cli [ ‘F:\Program Files\nodejs\node.exe’,
1 verbose cli ‘F:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘i’,
1 verbose cli ‘-g’,
1 verbose cli ‘rimraf’ ]
2 info using npm@6.4.1
3 info using node@v10.15.3
4 verbose npm-session e740c16c8c85dcbc
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 verbose stack TypeError: asyncWrite is not a function
7 verbose stack at onwrite (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:480:7)
7 verbose stack at WritableState.onwrite (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:180:5)
7 verbose stack at WriteStream.to [as _worker] (F:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\cache.js:154:13)
7 verbose stack at WriteStream._write (F:\Program Files\nodejs\node_modules\npm\node_modules\mississippi\node_modules\flush-write-stream\index.js:35:13)
7 verbose stack at doWrite (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:428:64)
7 verbose stack at writeOrBuffer (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:417:5)
7 verbose stack at WriteStream.Writable.write (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:334:11)
7 verbose stack at WriteStream.to [as _worker] (F:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\cache.js:171:25)
7 verbose stack at WriteStream._write (F:\Program Files\nodejs\node_modules\npm\node_modules\mississippi\node_modules\flush-write-stream\index.js:35:13)
7 verbose stack at doWrite (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:428:64)
7 verbose stack at writeOrBuffer (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:417:5)
7 verbose stack at WriteStream.Writable.write (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:334:11)
7 verbose stack at WriteStream.to [as _worker] (F:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\cache.js:182:19)
7 verbose stack at WriteStream._write (F:\Program Files\nodejs\node_modules\npm\node_modules\mississippi\node_modules\flush-write-stream\index.js:35:13)
7 verbose stack at doWrite (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:428:64)
7 verbose stack at writeOrBuffer (F:\Program Files\nodejs\node_modules\npm\node_modules\readable-stream\lib_stream_writable.js:417:5)
8 verbose cwd K:\A01_Udemy\C026_TypeScript_01\Preliminary\a08_Course_Workspace\Course-Workspace\Course Workspace\SEC005
9 verbose Windows_NT 10.0.17763
10 verbose argv “F:\Program Files\nodejs\node.exe” “F:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “i” “-g” “rimraf”
11 verbose node v10.15.3
12 verbose npm v6.4.1
13 error asyncWrite is not a function
14 verbose exit [ 1, true ]

Platform Info

$ npm --versions

{ ‘typescript-complete-course’: ‘1.0.0’,
npm: ‘6.4.1’,
ares: ‘1.15.0’,
cldr: ‘33.1’,
http_parser: ‘2.8.0’,
icu: ‘62.1’,
modules: ‘64’,
napi: ‘3’,
nghttp2: ‘1.34.0’,
node: ‘10.15.3’,
openssl: ‘1.1.0j’,
tz: ‘2018e’,
unicode: ‘11.0’,
uv: ‘1.23.2’,
v8: ‘6.8.275.32-node.51’,
zlib: ‘1.2.11’ }

$ node -p process.platform

win32

I’ve used the package installer for node 10.15.3 to uninstall NodeJs,
then reboot Windows 10,
then reinstall node

It did not work.

closing as duplicate of asyncWrite is not a function at node@10.3.0 and npm@6.1.0