Error: No dist in undefined package

I do not understand this issue... 

```
npm http GET https://registry.npmjs.org/webpack
npm http 200 https://registry.npmjs.org/webpack
npm http GET https://registry.npmjs.org/webpack/-/webpack-4.39.2.tgz
npm http 200 https://registry.npmjs.org/webpack/-/webpack-4.39.2.tgz
npm http GET https://registry.npmjs.org/webassemblyjs/helper-module-context/1.8.5
npm http GET https://registry.npmjs.org/webassemblyjs/wasm-edit/1.8.5
npm http GET https://registry.npmjs.org/webassemblyjs/wasm-parser/1.8.5
npm http GET https://registry.npmjs.org/acorn
npm http GET https://registry.npmjs.org/ajv
npm http GET https://registry.npmjs.org/ajv-keywords
npm http GET https://registry.npmjs.org/chrome-trace-event
npm http GET https://registry.npmjs.org/enhanced-resolve
npm http GET https://registry.npmjs.org/eslint-scope
npm http GET https://registry.npmjs.org/json-parse-better-errors
npm http GET https://registry.npmjs.org/loader-runner
npm http GET https://registry.npmjs.org/loader-utils
npm http GET https://registry.npmjs.org/memory-fs
npm http GET https://registry.npmjs.org/micromatch
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/neo-async
npm http GET https://registry.npmjs.org/node-libs-browser
npm http GET https://registry.npmjs.org/schema-utils
npm http GET https://registry.npmjs.org/tapable
npm http GET https://registry.npmjs.org/terser-webpack-plugin
npm http GET https://registry.npmjs.org/watchpack
npm http GET https://registry.npmjs.org/webpack-sources
npm http GET https://registry.npmjs.org/webassemblyjs/ast/1.8.5
npm http 200 https://registry.npmjs.org/chrome-trace-event
npm http 200 https://registry.npmjs.org/json-parse-better-errors
npm http 200 https://registry.npmjs.org/loader-runner
npm http 200 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/memory-fs
npm http 200 https://registry.npmjs.org/terser-webpack-plugin
npm http 200 https://registry.npmjs.org/ajv-keywords
npm http 200 https://registry.npmjs.org/loader-utils
npm http 200 https://registry.npmjs.org/eslint-scope
npm http 200 https://registry.npmjs.org/node-libs-browser
npm http 200 https://registry.npmjs.org/webpack-sources
npm http 200 https://registry.npmjs.org/schema-utils
npm http 200 https://registry.npmjs.org/watchpack
npm http 200 https://registry.npmjs.org/enhanced-resolve
npm http 200 https://registry.npmjs.org/neo-async
npm http 200 https://registry.npmjs.org/tapable
npm http GET https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz
npm http GET https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz
npm http 200 https://registry.npmjs.org/micromatch
npm http GET https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz
npm http 200 https://registry.npmjs.org/acorn
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz
npm http GET https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz
npm http GET https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz
npm http GET https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.1.tgz
npm http GET https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz
npm http GET https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz
npm http GET https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz
npm http GET https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz
npm http GET https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz
npm http 200 https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz
npm http GET https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz
npm http 404 https://registry.npmjs.org/webassemblyjs/helper-module-context/1.8.5
npm http GET https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz
npm http GET https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz
npm http 404 https://registry.npmjs.org/webassemblyjs/wasm-edit/1.8.5
npm http 200 https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz
npm http 200 https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz
npm http GET https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz
npm http 200 https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz
npm http 200 https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz
npm http 200 https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz
npm http 200 https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz
npm http 200 https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz
npm http 200 https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz
npm http 200 https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz
npm http GET https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz
npm http GET https://registry.npmjs.org/acorn/-/acorn-6.3.0.tgz
npm http 200 https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz
npm http 200 https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz
npm http 200 https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz
npm http 200 https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz
npm http 200 https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz
npm http 200 https://registry.npmjs.org/acorn/-/acorn-6.3.0.tgz
npm http 200 https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.1.tgz
npm http 200 https://registry.npmjs.org/ajv
npm http GET https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz
npm ERR! Error: No dist in undefined package
npm ERR!     at next (/usr/lib/node_modules/npm/lib/cache.js:746:26)
npm ERR!     at /usr/lib/node_modules/npm/lib/cache.js:739:5
npm ERR!     at saved (/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR!     at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR!     at FSReqCallback.oncomplete (fs.js:154:23)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 4.14.97-74.72.amzn1.x86_64
npm ERR! command "/home/ec2-user/.nodebrew/node/v12.9.0/bin/node" "/usr/bin/npm" "install" "-g" "webpack"
npm ERR! cwd /home/ec2-user/environment/sample
npm ERR! node -v v12.9.0
npm ERR! npm -v 1.3.6
npm http 200 https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz
npm http 404 https://registry.npmjs.org/webassemblyjs/wasm-parser/1.8.5
npm http 404 https://registry.npmjs.org/webassemblyjs/ast/1.8.5
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ec2-user/environment/sample/npm-debug.log
npm ERR! not ok code 0
```