I tried installing npm as described by the documentation using npm install @nestjs/config
and the installation process failed.
I got an error message:
npm ERR! Unexpected end of JSON input while parsing near '....0","lodash.get":"4.4'
and in the linked log file that the error message pointed to I found these lines as relevant:
http fetch GET 200 https://registry.npmjs.org/@nestjs%2fconfig 16ms (from cache)
silly fetchPackageMetaData error for @nestjs/config@latest Unexpected end of JSON input while parsing near '....0","lodash.get":"4.4'
I tried installing on a new nestjs project and got same error results.