npm 6.13.4 fails "cannot find module ... lib/util/unsupported.js"
jjoekoullas opened this issue · comments
On windows 10, in git bash.
$ nodist
(x64)
11.13.0
> 12.14.1 (global: 12)
$ nodist npm
6.9.0
> 6.13.4 (global: match)
$ npm -v
internal/modules/cjs/loader.js:796
throw err;
^
Error: Cannot find module '../lib/utils/unsupported.js'
Require stack:
- C:\Program Files (x86)\Nodist\npmv\6.13.4\bin\npm-cli.js
If I use 6.9.0, it works fine.
Copying in the lib & node_modules folders, as well as package.json from https://github.com/npm/cli/tree/v6.13.4 got it working.
This has been fixed in v.10.3