[windows] npm ls -g => ENOENT ...\pmj.gz\package.json

What I Wanted to Do

list installed packages via npm ls -g

What Happened Instead

(sorry for the long output, the error is intermixed in the middle and at the end)

C:\Users\Anthony\AppData\Local\Temp\t>nenv\Scripts\activate.bat
(nenv) C:\Users\Anthony\AppData\Local\Temp\t>npm ls -g
C:\Users\Anthony\AppData\Local\Temp\t\nenv\Scripts
`-- npm@6.5.0
  +-- @types/request@2.47.1
  | +-- @types/caseless@0.12.1
  | +-- @types/form-data@2.2.1
  | | `-- @types/node@10.7.0 deduped
  | +-- @types/node@10.7.0
  | `-- @types/tough-cookie@2.3.3
  +-- abbrev@1.1.1
  +-- ansicolors@0.3.2
  +-- ansistyles@0.1.3
  +-- aproba@1.2.0
  +-- archy@1.0.0
  +-- bin-links@1.1.2
  | +-- bluebird@3.5.3 deduped
  | +-- cmd-shim@2.0.2 deduped
  | +-- gentle-fs@2.0.1 deduped
  | +-- graceful-fs@4.1.15 deduped
  | `-- write-file-atomic@2.3.0 deduped
  +-- bluebird@3.5.3
  +-- byte-size@4.0.3
  +-- cacache@11.2.0
  | +-- bluebird@3.5.3 deduped
  | +-- chownr@1.0.1 deduped
  | +-- figgy-pudding@3.5.1 deduped
  | +-- glob@7.1.3 deduped
  | +-- graceful-fs@4.1.15 deduped
  | +-- lru-cache@4.1.3 deduped
  | +-- mississippi@3.0.0 deduped
  | +-- mkdirp@0.5.1 deduped
  | +-- move-concurrently@1.0.1 deduped
  | +-- promise-inflight@1.0.1 deduped
  | +-- rimraf@2.6.2 deduped
  | +-- ssri@6.0.1 deduped
  | +-- unique-filename@1.1.0 deduped
  | `-- y18n@4.0.0
  +-- call-limit@1.1.0
  +-- chownr@1.0.1
  +-- ci-info@1.6.0
  +-- cli-columns@3.1.2
  | +-- string-width@2.1.1
  | | +-- is-fullwidth-code-point@2.0.0
  | | `-- strip-ansi@4.0.0
  | |   `-- ansi-regex@3.0.0
  | `-- strip-ansi@3.0.1
  |   `-- ansi-regex@2.1.1
  +-- cli-table3@0.5.0
  | +-- colors@1.1.2
  | +-- object-assign@4.1.1
  | `-- string-width@2.1.1 deduped
  +-- cmd-shim@2.0.2
  | +-- graceful-fs@4.1.15 deduped
  | `-- mkdirp@0.5.1 deduped
  +-- columnify@1.5.4
  | +-- strip-ansi@3.0.1 deduped
  | `-- wcwidth@1.0.1
  |   `-- defaults@1.0.3
  |     `-- clone@1.0.4
  +-- config-chain@1.1.12
  | +-- ini@1.3.5 deduped
  | `-- proto-list@1.2.4
  +-- debuglog@1.0.1
  +-- detect-indent@5.0.0
  +-- detect-newline@2.1.0
  +-- dezalgo@1.0.3
  | +-- asap@2.0.6
  | `-- wrappy@1.0.2
  +-- editor@1.0.0
  +-- figgy-pudding@3.5.1
  +-- find-npm-prefix@1.0.2
  +-- fs-vacuum@1.2.10
  | +-- graceful-fs@4.1.15 deduped
  | +-- path-is-inside@1.0.2 deduped
  | `-- rimraf@2.6.2 deduped
  +-- fs-write-stream-atomic@1.0.10
  | +-- graceful-fs@4.1.15 deduped
  | +-- iferr@0.1.5
  | +-- imurmurhash@0.1.4 deduped
  | `-- readable-stream@2.3.6 deduped
  +-- gentle-fs@2.0.1
  | +-- aproba@1.2.0 deduped
  | +-- fs-vacuum@1.2.10 deduped
  | +-- graceful-fs@4.1.15 deduped
  | +-- iferr@0.1.5
  | +-- mkdirp@0.5.1 deduped
  | +-- path-is-inside@1.0.2 deduped
  | +-- read-cmd-shim@1.0.1 deduped
  | `-- slide@1.1.6 deduped
  +-- glob@7.1.3
  | +-- fs.realpath@1.0.0
  | +-- inflight@1.0.6 deduped
  | +-- inherits@2.0.3 deduped
  | +-- minimatch@3.0.4
  | | `-- brace-expansion@1.1.11
  | |   +-- balanced-match@1.0.0
  | |   `-- concat-map@0.0.1
  | +-- once@1.4.0 deduped
  | `-- path-is-absolute@1.0.1
  +-- graceful-fs@4.1.15
  +-- has-unicode@2.0.1
  +-- hosted-git-info@2.7.1
  +-- iferr@1.0.2
  +-- imurmurhash@0.1.4
  +-- inflight@1.0.6
  | +-- once@1.4.0 deduped
  | `-- wrappy@1.0.2 deduped
  +-- inherits@2.0.3
  +-- ini@1.3.5
  +-- init-package-json@1.10.3
  | +-- glob@7.1.3 deduped
  | +-- npm-package-arg@6.1.0 deduped
  | +-- promzard@0.3.0
  | | `-- read@1.0.7 deduped
  | +-- read@1.0.7 deduped
  | +-- read-package-json@2.0.13 deduped
  | +-- semver@5.5.1 deduped
  | +-- validate-npm-package-license@3.0.4 deduped
  | `-- validate-npm-package-name@3.0.0 deduped
  +-- is-cidr@2.0.6
  | `-- cidr-regex@2.0.9
  |   `-- ip-regex@2.1.0
  +-- json-parse-better-errors@1.0.2
  +-- JSONStream@1.3.4
  | +-- jsonparse@1.3.1
  | `-- through@2.3.8
  +-- lazy-property@1.0.0
  +-- libcipm@2.0.2
  | +-- bin-links@1.1.2 deduped
  | +-- bluebird@3.5.3 deduped
  | +-- find-npm-prefix@1.0.2 deduped
  | +-- graceful-fs@4.1.15 deduped
  | +-- lock-verify@2.0.2 deduped
  | +-- mkdirp@0.5.1 deduped
  | +-- npm-lifecycle@2.1.0 deduped
  | +-- npm-logical-tree@1.2.1
  | +-- npm-package-arg@6.1.0 deduped
  | +-- pacote@8.1.6 deduped
  | +-- protoduck@5.0.0
  | | `-- genfun@4.0.1
  | +-- read-package-json@2.0.13 deduped
  | +-- rimraf@2.6.2 deduped
  | `-- worker-farm@1.6.0 deduped
  +-- libnpmhook@4.0.1
  | +-- figgy-pudding@3.5.1 deduped
  | `-- npm-registry-fetch@3.1.1
  |   +-- bluebird@3.5.3 deduped
  |   +-- figgy-pudding@3.5.1 deduped
  |   +-- lru-cache@4.1.3 deduped
  |   +-- make-fetch-happen@4.0.1 deduped
  |   `-- npm-package-arg@6.1.0 deduped
  +-- libnpx@10.2.0
  | +-- dotenv@5.0.1
  | +-- npm-package-arg@6.1.0 deduped
  | +-- rimraf@2.6.2 deduped
  | +-- safe-buffer@5.1.2 deduped
  | +-- update-notifier@2.5.0 deduped
  | +-- which@1.3.1 deduped
  | +-- y18n@4.0.0 deduped
  | `-- yargs@11.0.0
  |   +-- cliui@4.1.0
  |   | +-- string-width@2.1.1 deduped
  |   | +-- strip-ansi@4.0.0
  |   | | `-- ansi-regex@3.0.0
  |   | `-- wrap-ansi@2.1.0
  |   |   +-- string-width@1.0.2
  |   |   | +-- code-point-at@1.1.0 deduped
  |   |   | +-- is-fullwidth-code-point@1.0.0 deduped
  |   |   | `-- strip-ansi@3.0.1 deduped
  |   |   `-- strip-ansi@3.0.1 deduped
  |   +-- decamelize@1.2.0
  |   +-- find-up@2.1.0
  |   | `-- locate-path@2.0.0
  |   |   +-- p-locate@2.0.0
  |   |   | `-- p-limit@1.2.0
  |   |   |   `-- p-try@1.0.0
  |   |   `-- path-exists@3.0.0
  |   +-- get-caller-file@1.0.2
  |   +-- os-locale@2.1.0
  |   | +-- execa@0.7.0
  |   | | +-- cross-spawn@5.1.0
  |   | | | +-- lru-cache@4.1.3 deduped
  |   | | | +-- shebang-command@1.2.0
  |   | | | | `-- shebang-regex@1.0.0
  |   | | | `-- which@1.3.1 deduped
  |   | | +-- get-stream@3.0.0 deduped
  |   | | +-- is-stream@1.1.0
  |   | | +-- npm-run-path@2.0.2
  |   | | | `-- path-key@2.0.1
  |   | | +-- p-finally@1.0.0
  |   | | +-- signal-exit@3.0.2 deduped
  |   | | `-- strip-eof@1.0.0
  |   | +-- lcid@1.0.0
  |   | | `-- invert-kv@1.0.0
  |   | `-- mem@1.1.0
  |   |   `-- mimic-fn@1.2.0
  |   +-- require-directory@2.1.1
  |   +-- require-main-filename@1.0.1
  |   +-- set-blocking@2.0.0 deduped
  |   +-- string-width@2.1.1 deduped
  |   +-- which-module@2.0.0
  |   +-- y18n@3.2.1
  |   `-- yargs-parser@9.0.2
  |     `-- camelcase@4.1.0 deduped
  +-- lock-verify@2.0.2
  | +-- npm-package-arg@6.1.0 deduped
  | `-- semver@5.5.1 deduped
  +-- lockfile@1.0.4
  | `-- signal-exit@3.0.2
  +-- lodash._baseindexof@3.1.0
  +-- lodash._baseuniq@4.6.0
  | +-- lodash._createset@4.0.3
  | `-- lodash._root@3.0.1
  +-- lodash._bindcallback@3.0.1
  +-- lodash._cacheindexof@3.0.2
  +-- lodash._createcache@3.1.2
  | `-- lodash._getnative@3.9.1 deduped
  +-- lodash._getnative@3.9.1
  +-- lodash.clonedeep@4.5.0
  +-- lodash.restparam@3.6.1
  +-- lodash.union@4.6.0
  +-- lodash.uniq@4.5.0
  +-- lodash.without@4.4.0
  +-- lru-cache@4.1.3
  | +-- pseudomap@1.0.2
  | `-- yallist@2.1.2
  +-- meant@1.0.1
  +-- mississippi@3.0.0
  | +-- concat-stream@1.6.2
  | | +-- buffer-from@1.0.0
  | | +-- inherits@2.0.3 deduped
  | | +-- readable-stream@2.3.6 deduped
  | | `-- typedarray@0.0.6
  | +-- duplexify@3.6.0
  | | +-- end-of-stream@1.4.1 deduped
  | | +-- inherits@2.0.3 deduped
  | | +-- readable-stream@2.3.6 deduped
  | | `-- stream-shift@1.0.0
  | +-- end-of-stream@1.4.1
  | | `-- once@1.4.0 deduped
  | +-- flush-write-stream@1.0.3
  | | +-- inherits@2.0.3 deduped
  | | `-- readable-stream@2.3.6 deduped
  | +-- from2@2.3.0
  | | +-- inherits@2.0.3 deduped
  | | `-- readable-stream@2.3.6 deduped
  | +-- parallel-transform@1.1.0
  | | +-- cyclist@0.2.2
  | | +-- inherits@2.0.3 deduped
  | | `-- readable-stream@2.3.6 deduped
  | +-- pump@3.0.0
  | | +-- end-of-stream@1.4.1 deduped
  | | `-- once@1.4.0 deduped
  | +-- pumpify@1.5.1
  | | +-- duplexify@3.6.0 deduped
  | | +-- inherits@2.0.3 deduped
  | | `-- pump@2.0.1
  | |   +-- end-of-stream@1.4.1 deduped
  | |   `-- once@1.4.0 deduped
  | +-- stream-each@1.2.2
  | | +-- end-of-stream@1.4.1 deduped
  | | `-- stream-shift@1.0.0 deduped
  | `-- through2@2.0.3
  |   +-- readable-stream@2.3.6 deduped
  |   `-- xtend@4.0.1
  +-- mkdirp@0.5.1
  | `-- minimist@0.0.8
  +-- move-concurrently@1.0.1
  | +-- aproba@1.2.0 deduped
  | +-- copy-concurrently@1.0.5
  | | +-- aproba@1.2.0 deduped
  | | +-- fs-write-stream-atomic@1.0.10 deduped
  | | +-- iferr@0.1.5
  | | +-- mkdirp@0.5.1 deduped
  | | +-- rimraf@2.6.2 deduped
  | | `-- run-queue@1.0.3 deduped
  | +-- fs-write-stream-atomic@1.0.10 deduped
  | +-- mkdirp@0.5.1 deduped
  | +-- rimraf@2.6.2 deduped
  | `-- run-queue@1.0.3
  |   `-- aproba@1.2.0 deduped
  +-- node-gyp@3.8.0
  | +-- fstream@1.0.11
  | | +-- graceful-fs@4.1.15 deduped
  | | +-- inherits@2.0.3 deduped
  | | +-- mkdirp@0.5.1 deduped
  | | `-- rimraf@2.6.2 deduped
  | +-- glob@7.1.3 deduped
  | +-- graceful-fs@4.1.15 deduped
  | +-- mkdirp@0.5.1 deduped
  | +-- nopt@3.0.6
  | | `-- abbrev@1.1.1 deduped
  | +-- npmlog@4.1.2 deduped
  | +-- osenv@0.1.5 deduped
  | +-- request@2.88.0 deduped
  | +-- rimraf@2.6.2 deduped
  | +-- semver@5.3.0
  | +-- tar@2.2.1
  | | +-- block-stream@0.0.9
  | | | `-- inherits@2.0.3 deduped
  | | +-- fstream@1.0.11 deduped
  | | `-- inherits@2.0.3 deduped
  | `-- which@1.3.1 deduped
  +-- nopt@4.0.1
  | +-- abbrev@1.1.1 deduped
  | `-- osenv@0.1.5 deduped
  +-- normalize-package-data@2.4.0
  | +-- hosted-git-info@2.7.1 deduped
  | +-- is-builtin-module@1.0.0
  | | `-- builtin-modules@1.1.1
  | +-- semver@5.5.1 deduped
  | `-- validate-npm-package-license@3.0.4 deduped
  +-- npm-audit-report@1.3.1
  | +-- cli-table3@0.5.0 deduped
  | `-- console-control-strings@1.1.0
  +-- npm-cache-filename@1.0.2
  +-- npm-install-checks@3.0.0
  | `-- semver@5.5.1 deduped
  +-- npm-lifecycle@2.1.0
  | +-- byline@5.0.0
  | +-- graceful-fs@4.1.15 deduped
  | +-- node-gyp@3.8.0 deduped
  | +-- resolve-from@4.0.0
  | +-- slide@1.1.6 deduped
  | +-- uid-number@0.0.6 deduped
  | +-- umask@1.1.0 deduped
  | `-- which@1.3.1 deduped
  +-- npm-package-arg@6.1.0
  | +-- hosted-git-info@2.7.1 deduped
  | +-- osenv@0.1.5 deduped
  | +-- semver@5.5.1 deduped
  | `-- validate-npm-package-name@3.0.0 deduped
  +-- npm-packlist@1.1.12
  | +-- ignore-walk@3.0.1
  | | `-- minimatch@3.0.4 deduped
  | `-- npm-bundled@1.0.5
  +-- npm-pick-manifest@2.1.0
  | +-- npm-package-arg@6.1.0 deduped
  | `-- semver@5.5.1 deduped
  +-- npm-profile@3.0.2
  | +-- aproba@1.2.0 deduped
  | `-- make-fetch-happen@4.0.1
  |   +-- agentkeepalive@3.4.1
  |   | `-- humanize-ms@1.2.1
  |   |   `-- ms@2.1.1
  |   +-- cacache@11.2.0 deduped
  |   +-- http-cache-semantics@3.8.1
  |   +-- http-proxy-agent@2.1.0
  |   | +-- agent-base@4.2.0
  |   | | `-- es6-promisify@5.0.0
  |   | |   `-- es6-promise@4.2.4
  |   | `-- debug@3.1.0
  |   |   `-- ms@2.0.0
  |   +-- https-proxy-agent@2.2.1
  |   | +-- agent-base@4.2.0 deduped
  |   | `-- debug@3.1.0 deduped
  |   +-- lru-cache@4.1.3 deduped
  |   +-- mississippi@3.0.0 deduped
  |   +-- node-fetch-npm@2.0.2
  |   | +-- encoding@0.1.12
  |   | | `-- iconv-lite@0.4.23
  |   | |   `-- safer-buffer@2.1.2 deduped
  |   | +-- json-parse-better-errors@1.0.2 deduped
  |   | `-- safe-buffer@5.1.2 deduped
  |   +-- promise-retry@1.1.1 deduped
  |   +-- socks-proxy-agent@4.0.1
  |   | +-- agent-base@4.2.0 deduped
  |   | `-- socks@2.2.0
  |   |   +-- ip@1.1.5
  |   |   `-- smart-buffer@4.0.1
  |   `-- ssri@6.0.1 deduped
  +-- npm-registry-client@8.6.0
  | +-- concat-stream@1.6.2 deduped
  | +-- graceful-fs@4.1.15 deduped
  | +-- normalize-package-data@2.4.0 deduped
  | +-- npm-package-arg@6.1.0 deduped
  | +-- npmlog@4.1.2 deduped
  | +-- once@1.4.0 deduped
  | +-- request@2.88.0 deduped
  | +-- retry@0.10.1
  | +-- safe-buffer@5.1.2 deduped
  | +-- semver@5.5.1 deduped
  | +-- slide@1.1.6 deduped
  | `-- ssri@5.3.0
  |   `-- safe-buffer@5.1.2 deduped
  +-- npm-registry-fetch@1.1.0
  | +-- bluebird@3.5.3 deduped
  | +-- figgy-pudding@2.0.1
  | +-- lru-cache@4.1.3 deduped
  | +-- make-fetch-happen@3.0.0
  | | +-- agentkeepalive@3.4.1 deduped
  | | +-- cacache@10.0.4
  | | | +-- bluebird@3.5.3 deduped
  | | | +-- chownr@1.0.1 deduped
  | | | +-- glob@7.1.3 deduped
  | | | +-- graceful-fs@4.1.15 deduped
  | | | +-- lru-cache@4.1.3 deduped
  | | | +-- mississippi@2.0.0
  | | | | +-- concat-stream@1.6.2 deduped
  | | | | +-- duplexify@3.6.0 deduped
  | | | | +-- end-of-stream@1.4.1 deduped
  | | | | +-- flush-write-stream@1.0.3 deduped
  | | | | +-- from2@2.3.0 deduped
  | | | | +-- parallel-transform@1.1.0 deduped
  | | | | +-- pump@2.0.1
  | | | | | +-- end-of-stream@1.4.1 deduped
  | | | | | `-- once@1.4.0 deduped
  | | | | +-- pumpify@1.5.1 deduped
  | | | | +-- stream-each@1.2.2 deduped
  | | | | `-- through2@2.0.3 deduped
  | | | +-- mkdirp@0.5.1 deduped
  | | | +-- move-concurrently@1.0.1 deduped
  | | | +-- promise-inflight@1.0.1 deduped
  | | | +-- rimraf@2.6.2 deduped
  | | | +-- ssri@5.3.0 deduped
  | | | +-- unique-filename@1.1.0 deduped
  | | | `-- y18n@4.0.0 deduped
  | | +-- http-cache-semantics@3.8.1 deduped
  | | +-- http-proxy-agent@2.1.0 deduped
  | | +-- https-proxy-agent@2.2.1 deduped
  | | +-- lru-cache@4.1.3 deduped
  | | +-- mississippi@3.0.0 deduped
  | | +-- node-fetch-npm@2.0.2 deduped
  | | +-- promise-retry@1.1.1 deduped
  | | +-- socks-proxy-agent@3.0.1
  | | | +-- agent-base@4.2.0 deduped
  | | | `-- socks@1.1.10
  | | |   +-- ip@1.1.5 deduped
  | | |   `-- smart-buffer@1.1.15
  | | `-- ssri@5.3.0
  | |   `-- safe-buffer@5.1.2 deduped
  | +-- npm-package-arg@6.1.0 deduped
  | `-- safe-buffer@5.1.2 deduped
  +-- npm-user-validate@1.0.0
  +-- npmlog@4.1.2
  | +-- are-we-there-yet@1.1.4
  | | +-- delegates@1.0.0
  | | `-- readable-stream@2.3.6 deduped
  | +-- console-control-strings@1.1.0 deduped
  | +-- gauge@2.7.4
  | | +-- aproba@1.2.0 deduped
  | | +-- console-control-strings@1.1.0 deduped
  | | +-- has-unicode@2.0.1 deduped
  | | +-- object-assign@4.1.1 deduped
  | | +-- signal-exit@3.0.2 deduped
  | | +-- string-width@1.0.2
  | | | +-- code-point-at@1.1.0
  | | | +-- is-fullwidth-code-point@1.0.0
  | | | | `-- number-is-nan@1.0.1
  | | | `-- strip-ansi@3.0.1 deduped
  | | +-- strip-ansi@3.0.1 deduped
  | | `-- wide-align@1.1.2
  | |   `-- string-width@1.0.2
  | |     +-- code-point-at@1.1.0 deduped
  | |     +-- is-fullwidth-code-point@1.0.0 deduped
  | |     `-- strip-ansi@3.0.1 deduped
  | `-- set-blocking@2.0.0
  +-- once@1.4.0
  | `-- wrappy@1.0.2 deduped
  +-- opener@1.5.1
  +-- osenv@0.1.5
  | +-- os-homedir@1.0.2
  | `-- os-tmpdir@1.0.2
  +-- pacote@8.1.6
  | +-- bluebird@3.5.3 deduped
  | +-- cacache@11.2.0 deduped
  | +-- get-stream@3.0.0
  | +-- glob@7.1.3 deduped
  | +-- lru-cache@4.1.3 deduped
  | +-- make-fetch-happen@4.0.1 deduped
  | +-- minimatch@3.0.4 deduped
  | +-- minipass@2.3.3
  | | +-- safe-buffer@5.1.2 deduped
  | | `-- yallist@3.0.2
  | +-- mississippi@3.0.0 deduped
  | +-- mkdirp@0.5.1 deduped
  | +-- normalize-package-data@2.4.0 deduped
  | +-- npm-package-arg@6.1.0 deduped
  | +-- npm-packlist@1.1.12 deduped
  | +-- npm-pick-manifest@2.1.0 deduped
  | +-- osenv@0.1.5 deduped
  | +-- promise-inflight@1.0.1 deduped
  | +-- promise-retry@1.1.1
  | | +-- err-code@1.1.2
  | | `-- retry@0.10.1
  | +-- protoduck@5.0.0 deduped
  | +-- rimraf@2.6.2 deduped
  | +-- safe-buffer@5.1.2 deduped
  | +-- semver@5.5.1 deduped
  | +-- ssri@6.0.1 deduped
  | +-- tar@4.4.8 deduped
  | +-- unique-filename@1.1.0 deduped
  | `-- which@1.3.1 deduped
  +-- path-is-inside@1.0.2
  +--  error: ENOENT: no such file or directory, open 'C:\Users\Anthony\AppData\Local\Temp\t\nenv\Scripts\node_modules\npm\node_modules\pmj.gz\package.json
  +-- promise-inflight@1.0.1
  +-- qrcode-terminal@0.12.0
  +-- query-string@6.1.0
  | +-- decode-uri-component@0.2.0
  | `-- strict-uri-encode@2.0.0
  +-- qw@1.0.1
  +-- read@1.0.7
  | `-- mute-stream@0.0.7
  +-- read-cmd-shim@1.0.1
  | `-- graceful-fs@4.1.15 deduped
  +-- read-installed@4.0.3
  | +-- debuglog@1.0.1 deduped
  | +-- graceful-fs@4.1.15 deduped
  | +-- read-package-json@2.0.13 deduped
  | +-- readdir-scoped-modules@1.0.2 deduped
  | +-- semver@5.5.1 deduped
  | +-- slide@1.1.6 deduped
  | `-- util-extend@1.0.3
  +-- read-package-json@2.0.13
  | +-- glob@7.1.3 deduped
  | +-- graceful-fs@4.1.15 deduped
  | +-- json-parse-better-errors@1.0.2 deduped
  | +-- normalize-package-data@2.4.0 deduped
  | `-- slash@1.0.0
  +-- read-package-tree@5.2.1
  | +-- debuglog@1.0.1 deduped
  | +-- dezalgo@1.0.3 deduped
  | +-- once@1.4.0 deduped
  | +-- read-package-json@2.0.13 deduped
  | `-- readdir-scoped-modules@1.0.2 deduped
  +-- readable-stream@2.3.6
  | +-- core-util-is@1.0.2
  | +-- inherits@2.0.3 deduped
  | +-- isarray@1.0.0
  | +-- process-nextick-args@2.0.0
  | +-- safe-buffer@5.1.2 deduped
  | +-- string_decoder@1.1.1
  | | `-- safe-buffer@5.1.2 deduped
  | `-- util-deprecate@1.0.2
  +-- readdir-scoped-modules@1.0.2
  | +-- debuglog@1.0.1 deduped
  | +-- dezalgo@1.0.3 deduped
  | +-- graceful-fs@4.1.15 deduped
  | `-- once@1.4.0 deduped
  +-- request@2.88.0
  | +-- aws-sign2@0.7.0
  | +-- aws4@1.8.0
  | +-- caseless@0.12.0
  | +-- combined-stream@1.0.6
  | | `-- delayed-stream@1.0.0
  | +-- extend@3.0.2
  | +-- forever-agent@0.6.1
  | +-- form-data@2.3.2
  | | +-- asynckit@0.4.0
  | | +-- combined-stream@1.0.6 deduped
  | | `-- mime-types@2.1.19 deduped
  | +-- har-validator@5.1.0
  | | +-- ajv@5.5.2
  | | | +-- co@4.6.0
  | | | +-- fast-deep-equal@1.1.0
  | | | +-- fast-json-stable-stringify@2.0.0
  | | | `-- json-schema-traverse@0.3.1
  | | `-- har-schema@2.0.0
  | +-- http-signature@1.2.0
  | | +-- assert-plus@1.0.0
  | | +-- jsprim@1.4.1
  | | | +-- assert-plus@1.0.0 deduped
  | | | +-- extsprintf@1.3.0
  | | | +-- json-schema@0.2.3
  | | | `-- verror@1.10.0
  | | |   +-- assert-plus@1.0.0 deduped
  | | |   +-- core-util-is@1.0.2 deduped
  | | |   `-- extsprintf@1.3.0 deduped
  | | `-- sshpk@1.14.2
  | |   +-- asn1@0.2.4
  | |   | `-- safer-buffer@2.1.2 deduped
  | |   +-- assert-plus@1.0.0 deduped
  | |   +-- bcrypt-pbkdf@1.0.2
  | |   | `-- tweetnacl@0.14.5 deduped
  | |   +-- dashdash@1.14.1
  | |   | `-- assert-plus@1.0.0 deduped
  | |   +-- ecc-jsbn@0.1.2
  | |   | +-- jsbn@0.1.1 deduped
  | |   | `-- safer-buffer@2.1.2 deduped
  | |   +-- getpass@0.1.7
  | |   | `-- assert-plus@1.0.0 deduped
  | |   +-- jsbn@0.1.1
  | |   +-- safer-buffer@2.1.2
  | |   `-- tweetnacl@0.14.5
  | +-- is-typedarray@1.0.0
  | +-- isstream@0.1.2
  | +-- json-stringify-safe@5.0.1
  | +-- mime-types@2.1.19
  | | `-- mime-db@1.35.0
  | +-- oauth-sign@0.9.0
  | +-- performance-now@2.1.0
  | +-- qs@6.5.2
  | +-- safe-buffer@5.1.2 deduped
  | +-- tough-cookie@2.4.3
  | | +-- psl@1.1.29
  | | `-- punycode@1.4.1
  | +-- tunnel-agent@0.6.0
  | | `-- safe-buffer@5.1.2 deduped
  | `-- uuid@3.3.2 deduped
  +-- retry@0.12.0
  +-- rimraf@2.6.2
  | `-- glob@7.1.3 deduped
  +-- safe-buffer@5.1.2
  +-- semver@5.5.1
  +-- sha@2.0.1
  | +-- graceful-fs@4.1.15 deduped
  | `-- readable-stream@2.3.6 deduped
  +-- slide@1.1.6
  +-- sorted-object@2.0.1
  +-- sorted-union-stream@2.1.3
  | +-- from2@1.3.0
  | | +-- inherits@2.0.3 deduped
  | | `-- readable-stream@1.1.14
  | |   +-- core-util-is@1.0.2 deduped
  | |   +-- inherits@2.0.3 deduped
  | |   +-- isarray@0.0.1
  | |   `-- string_decoder@0.10.31
  | `-- stream-iterate@1.2.0
  |   +-- readable-stream@2.3.6 deduped
  |   `-- stream-shift@1.0.0 deduped
  +-- ssri@6.0.1
  | `-- figgy-pudding@3.5.1 deduped
  +-- stringify-package@1.0.0
  +-- tar@4.4.8
  | +-- chownr@1.1.1
  | +-- fs-minipass@1.2.5
  | | `-- minipass@2.3.3 deduped
  | +-- minipass@2.3.5
  | | +-- safe-buffer@5.1.2 deduped
  | | `-- yallist@3.0.3 deduped
  | +-- minizlib@1.1.1
  | | `-- minipass@2.3.3 deduped
  | +-- mkdirp@0.5.1 deduped
  | +-- safe-buffer@5.1.2 deduped
  | `-- yallist@3.0.3
  +-- text-table@0.2.0
  +-- tiny-relative-date@1.3.0
  +-- uid-number@0.0.6
  +-- umask@1.1.0
  +-- unique-filename@1.1.0
  | `-- unique-slug@2.0.0
  |   `-- imurmurhash@0.1.4 deduped
  +-- unpipe@1.0.0
  +-- update-notifier@2.5.0
  | +-- boxen@1.3.0
  | | +-- ansi-align@2.0.0
  | | | `-- string-width@2.1.1 deduped
  | | +-- camelcase@4.1.0
  | | +-- chalk@2.4.1 deduped
  | | +-- cli-boxes@1.0.0
  | | +-- string-width@2.1.1 deduped
  | | +-- term-size@1.2.0
  | | | `-- execa@0.7.0 deduped
  | | `-- widest-line@2.0.0
  | |   `-- string-width@2.1.1 deduped
  | +-- chalk@2.4.1
  | | +-- ansi-styles@3.2.1
  | | | `-- color-convert@1.9.1
  | | |   `-- color-name@1.1.3
  | | +-- escape-string-regexp@1.0.5
  | | `-- supports-color@5.4.0
  | |   `-- has-flag@3.0.0
  | +-- configstore@3.1.2
  | | +-- dot-prop@4.2.0
  | | | `-- is-obj@1.0.1
  | | +-- graceful-fs@4.1.15 deduped
  | | +-- make-dir@1.3.0
  | | | `-- pify@3.0.0
  | | +-- unique-string@1.0.0
  | | | `-- crypto-random-string@1.0.0
  | | +-- write-file-atomic@2.3.0 deduped
  | | `-- xdg-basedir@3.0.0 deduped
  | +-- import-lazy@2.1.0
  | +-- is-ci@1.1.0
  | | `-- ci-info@1.6.0 deduped
  | +-- is-installed-globally@0.1.0
  | | +-- global-dirs@0.1.1
  | | | `-- ini@1.3.5 deduped
  | | `-- is-path-inside@1.0.1
  | |   `-- path-is-inside@1.0.2 deduped
  | +-- is-npm@1.0.0
  | +-- latest-version@3.1.0
  | | `-- package-json@4.0.1
  | |   +-- got@6.7.1
  | |   | +-- create-error-class@3.0.2
  | |   | | `-- capture-stack-trace@1.0.0
  | |   | +-- duplexer3@0.1.4
  | |   | +-- get-stream@3.0.0 deduped
  | |   | +-- is-redirect@1.0.0
  | |   | +-- is-retry-allowed@1.1.0
  | |   | +-- is-stream@1.1.0 deduped
  | |   | +-- lowercase-keys@1.0.1
  | |   | +-- safe-buffer@5.1.2 deduped
  | |   | +-- timed-out@4.0.1
  | |   | +-- unzip-response@2.0.1
  | |   | `-- url-parse-lax@1.0.0
  | |   |   `-- prepend-http@1.0.4
  | |   +-- registry-auth-token@3.3.2
  | |   | +-- rc@1.2.7
  | |   | | +-- deep-extend@0.5.1
  | |   | | +-- ini@1.3.5 deduped
  | |   | | +-- minimist@1.2.0
  | |   | | `-- strip-json-comments@2.0.1
  | |   | `-- safe-buffer@5.1.2 deduped
  | |   +-- registry-url@3.1.0
  | |   | `-- rc@1.2.7 deduped
  | |   `-- semver@5.5.1 deduped
  | +-- semver-diff@2.1.0
  | | `-- semver@5.5.1 deduped
  | `-- xdg-basedir@3.0.0
  +-- uuid@3.3.2
  +-- validate-npm-package-license@3.0.4
  | +-- spdx-correct@3.0.0
  | | +-- spdx-expression-parse@3.0.0 deduped
  | | `-- spdx-license-ids@3.0.0
  | `-- spdx-expression-parse@3.0.0
  |   +-- spdx-exceptions@2.1.0
  |   `-- spdx-license-ids@3.0.0 deduped
  +-- validate-npm-package-name@3.0.0
  | `-- builtins@1.0.3
  +-- which@1.3.1
  | `-- isexe@2.0.0
  +-- worker-farm@1.6.0
  | `-- errno@0.1.7
  |   `-- prr@1.0.1
  `-- write-file-atomic@2.3.0
    +-- graceful-fs@4.1.15 deduped
    +-- imurmurhash@0.1.4 deduped
    `-- signal-exit@3.0.2 deduped

npm ERR! error in C:\Users\Anthony\AppData\Local\Temp\t\nenv\Scripts\node_modules\npm\node_modules\pmj.gz: ENOENT: no such file or directory, open 'C:\Users\Anthony\AppData\Local\Temp\t\nenv\Scripts\node_modules\npm\node_modules\pmj.gz\package.json'

Reproduction Steps

I’m using nodeenv to set up windows environments, it essentially creates a prefix environment from the downloads at http://nodejs.org/dist/

nodeenv nenv
nenv\Scripts\activate.bat
npm ls -g

Details

(nenv) C:\Users\Anthony\AppData\Local\Temp\t>node --version
v11.5.0

(nenv) C:\Users\Anthony\AppData\Local\Temp\t>npm --version
6.5.0

(nenv) C:\Users\Anthony\AppData\Local\Temp\t>file nenv\Scripts\node_modules\npm\node_modules\pmj.gz
nenv\Scripts\node_modules\npm\node_modules\pmj.gz: gzip compressed data, was "pmj", last modified: Thu Aug  9 21:12:33 2018, from Unix, original size 1564036

Platform Info

>npm --versions
{ npm: '6.5.0',
  ares: '1.15.0',
  cldr: '34.0',
  http_parser: '2.8.0',
  icu: '63.1',
  llhttp: '1.0.1',
  modules: '67',
  napi: '3',
  nghttp2: '1.34.0',
  node: '11.5.0',
  openssl: '1.1.0j',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.24.0',
  v8: '7.0.276.38-node.13',
  zlib: '1.2.11' }
>node -p process.platform
win32

I don’t know why pmj.gz and .package-map.json were added, but that seems like some testing with tink:

https://github.com/npm/cli/commit/83c2b117d0b760d0ea8d667e5e4bdfa6a7a7a8f6#diff-d5c3069c9374c17115157426f4d372a3

The error handling seems pretty okay. I suppose the reason that it doesn’t show up on my end is that nodeenv installs directly from git:

PR:

https://github.com/npm/cli/pull/129

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.