{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/2843","labels_url":"https://api.github.com/repos/npm/npm/issues/2843/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/2843/comments","events_url":"https://api.github.com/repos/npm/npm/issues/2843/events","html_url":"https://github.com/npm/npm/issues/2843","id":7246081,"number":2843,"title":"`npm -g ls --depth=#` causes errors","user":{"login":"Zearin","id":630124,"avatar_url":"https://avatars.githubusercontent.com/u/630124?v=3","gravatar_id":"","url":"https://api.github.com/users/Zearin","html_url":"https://github.com/Zearin","followers_url":"https://api.github.com/users/Zearin/followers","following_url":"https://api.github.com/users/Zearin/following{/other_user}","gists_url":"https://api.github.com/users/Zearin/gists{/gist_id}","starred_url":"https://api.github.com/users/Zearin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zearin/subscriptions","organizations_url":"https://api.github.com/users/Zearin/orgs","repos_url":"https://api.github.com/users/Zearin/repos","events_url":"https://api.github.com/users/Zearin/events{/privacy}","received_events_url":"https://api.github.com/users/Zearin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2012-09-30T15:05:36Z","updated_at":"2015-12-16T19:30:22Z","closed_at":"2012-10-04T05:00:33Z","body":"**EDIT:**  Unsure if this is related to #887.\r\n\r\n----\r\n\r\nIf I do `npm -g ls`, it displays normal results.\r\n\r\nHowever, if I add `--depth=1`, it seems to get confused, as if `--depth` blinds `npm` to the dependencies in each package’s `node_modules` folder:\r\n\r\n\r\n```bash\r\n$ npm -g ls --depth=1\r\nWARN package.json vogue@0.4.3 No README.md file found!\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/gh-markdown requires commander@'0.2.1' but will load\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/commander,\r\nnpm WARN unmet dependency which is version 1.0.4\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/lyvus requires socket.io@'0.8.7' but will load\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/socket.io,\r\nnpm WARN unmet dependency which is version 0.9.10\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/lyvus requires coffee-script@'1.2.0' but will load\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/coffee-script,\r\nnpm WARN unmet dependency which is version 1.3.3\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/lyvus requires stylus@'0.22.5' but will load\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/stylus,\r\nnpm WARN unmet dependency which is version 0.29.0\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/nide requires commander@'0.4.3' but will load\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/commander,\r\nnpm WARN unmet dependency which is version 1.0.4\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/nide requires socket.io@'0.8.7' but will load\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/socket.io,\r\nnpm WARN unmet dependency which is version 0.9.10\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/scaffolder requires nopt@'1.0.10' but will load\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/nopt,\r\nnpm WARN unmet dependency which is version 2.0.0\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/vogue requires socket.io@'0.7.11' but will load\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/socket.io,\r\nnpm WARN unmet dependency which is version 0.9.10\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/ws requires commander@'0.6.1' but will load\r\nnpm WARN unmet dependency /usr/local/lib/node_modules/commander,\r\nnpm WARN unmet dependency which is version 1.0.4\r\n/usr/local/lib\r\n├─┬ changelog@0.1.3\r\n│ ├── cli@0.4.4-2\r\n│ ├── logging@2.0.18\r\n│ ├── request@2.11.4\r\n│ ├── semver@1.0.14\r\n│ ├── step@0.0.5\r\n│ └── wordwrap@0.0.2\r\n├── code-stats@0.1.3\r\n├── coffee-script@1.3.3 invalid\r\n├── coffeescript-growl@0.1.3\r\n├─┬ commander@1.0.4 invalid\r\n│ └── keypress@0.1.0\r\n├─┬ commando@0.0.2\r\n│ ├── async@0.1.22\r\n│ └── node-log@0.0.3\r\n├─┬ comsat@0.1.1\r\n│ ├── async@0.1.22\r\n│ └── bigint@0.3.9\r\n├── csslint@0.9.9\r\n├── daemon@0.5.1\r\n├─┬ gh-markdown@0.0.2\r\n│ └── github-flavored-markdown@1.0.1\r\n├─┬ gh-markdown-cli@0.2.0\r\n│ ├── github-flavored-markdown@1.0.1\r\n│ ├── glob@3.1.13\r\n│ └── wrench@1.3.9\r\n├── growl@1.6.1\r\n├─┬ http-console@0.6.2\r\n│ └── eyes@0.1.8\r\n├─┬ js2coffee@0.2.0\r\n│ ├── file@0.2.1\r\n│ └── underscore@1.4.0\r\n├── less@1.3.0\r\n├── libxml@0.0.7\r\n├─┬ lyvus@0.0.3\r\n│ ├── express@2.5.6\r\n│ ├── jade@0.20.0\r\n│ └── watch@0.5.0\r\n├── mime@1.2.7\r\n├── mimeparse@0.1.4\r\n├─┬ minimatch@0.2.6\r\n│ └── lru-cache@2.0.4\r\n├─┬ mongodb@1.1.7\r\n│ └── bson@0.1.3\r\n├── ngen@1.1.0\r\n├── nib@0.8.2\r\n├─┬ nide@0.2.0\r\n│ ├── dive@0.2.0\r\n│ ├── express@2.5.11\r\n│ └── node-uuid@1.3.3\r\n├─┬ node-gyp@0.6.11\r\n│ ├── fstream@0.1.19\r\n│ ├── glob@3.1.13\r\n│ ├── graceful-fs@1.1.14\r\n│ ├── mkdirp@0.3.4\r\n│ ├── npmlog@0.0.2\r\n│ ├── osenv@0.0.3\r\n│ ├── request@2.9.203\r\n│ ├── rimraf@2.0.2\r\n│ ├── semver@1.0.14\r\n│ ├── tar@0.1.13\r\n│ └── which@1.0.5\r\n├── nodewatch@0.3.1\r\n├─┬ nopt@2.0.0 invalid\r\n│ └── abbrev@1.0.3\r\n├─┬ npm@1.1.62\r\n│ ├── abbrev@1.0.3\r\n│ ├── ansi@0.1.2\r\n│ ├── archy@0.0.2\r\n│ ├── block-stream@0.0.6\r\n│ ├── chownr@0.0.1\r\n│ ├── couch-login@0.1.14\r\n│ ├── fstream@0.1.19\r\n│ ├── fstream-npm@0.1.2\r\n│ ├── glob@3.1.13\r\n│ ├── graceful-fs@1.1.14\r\n│ ├── inherits@1.0.0\r\n│ ├── ini@1.0.4\r\n│ ├── init-package-json@0.0.5\r\n│ ├── lockfile@0.2.1\r\n│ ├── lru-cache@2.0.4\r\n│ ├── mkdirp@0.3.4\r\n│ ├── npm-registry-client@0.2.7\r\n│ ├── npmconf@0.0.16\r\n│ ├── npmlog@0.0.2\r\n│ ├── once@1.1.1\r\n│ ├── opener@1.3.0\r\n│ ├── osenv@0.0.3\r\n│ ├── read@1.0.4\r\n│ ├── read-installed@0.0.2\r\n│ ├── read-package-json@0.1.6\r\n│ ├── request@2.9.203\r\n│ ├── retry@0.6.0\r\n│ ├── rimraf@2.0.2\r\n│ ├── semver@1.0.14\r\n│ ├── slide@1.1.3\r\n│ ├── tar@0.1.13\r\n│ ├── uid-number@0.0.3\r\n│ └── which@1.0.5\r\n├─┬ scaffolder@0.6.5\r\n│ ├── async@0.1.22\r\n│ ├── debug@0.7.0\r\n│ ├── out@0.4.3\r\n│ ├── read@0.1.1\r\n│ ├── squirrel@0.1.1\r\n│ └── underscore@1.3.3\r\n├── sh@0.0.2\r\n├─┬ socket.io@0.9.10 invalid\r\n│ ├── policyfile@0.0.4\r\n│ ├── redis@0.7.2\r\n│ └── socket.io-client@0.9.10\r\n├─┬ stylus@0.29.0 invalid\r\n│ ├── cssom@0.2.5\r\n│ ├── debug@0.7.0\r\n│ └── mkdirp@0.3.4\r\n├── true@*\r\n├─┬ vogue@0.4.3\r\n│ └── parseopt@1.0.0-2\r\n├─┬ vows@0.6.4\r\n│ ├── diff@1.0.3\r\n│ └── eyes@0.1.8\r\n├─┬ watch-tree@0.1.1\r\n│ ├── async@0.1.22\r\n│ ├── async_testing@0.3.2\r\n│ ├── optimist@0.3.4\r\n│ └── underscore@1.4.0\r\n├─┬ watchman@0.1.5\r\n│ └── cli@0.4.4-2\r\n├─┬ ws@0.4.21\r\n│ ├── options@0.0.3\r\n│ └── tinycolor@0.0.1\r\n└─┬ xmlson@0.0.5\r\n  ├── async@0.1.22\r\n  └── ltx@0.2.2\r\n\r\nnpm ERR! missing: true@*, required by undefined@undefined\r\nnpm ERR! max depth reached: step@0.0.5, required by changelog@0.1.3\r\nnpm ERR! max depth reached: request@2.11.4, required by changelog@0.1.3\r\nnpm ERR! max depth reached: wordwrap@0.0.2, required by changelog@0.1.3\r\nnpm ERR! max depth reached: cli@0.4.4-2, required by changelog@0.1.3\r\nnpm ERR! max depth reached: semver@1.0.14, required by changelog@0.1.3\r\nnpm ERR! max depth reached: logging@2.0.18, required by changelog@0.1.3\r\nnpm ERR! invalid: coffee-script@1.3.3 /usr/local/lib/node_modules/coffee-script\r\nnpm ERR! invalid: commander@1.0.4 /usr/local/lib/node_modules/commander\r\nnpm ERR! max depth reached: keypress@0.1.0, required by commander@1.0.4\r\nnpm ERR! max depth reached: node-log@0.0.3, required by commando@0.0.2\r\nnpm ERR! max depth reached: async@0.1.22, required by commando@0.0.2\r\nnpm ERR! max depth reached: bigint@0.3.9, required by comsat@0.1.1\r\nnpm ERR! max depth reached: async@0.1.22, required by comsat@0.1.1\r\nnpm ERR! max depth reached: github-flavored-markdown@1.0.1, required by gh-markdown@0.0.2\r\nnpm ERR! max depth reached: wrench@1.3.9, required by gh-markdown-cli@0.2.0\r\nnpm ERR! max depth reached: github-flavored-markdown@1.0.1, required by gh-markdown-cli@0.2.0\r\nnpm ERR! max depth reached: glob@3.1.13, required by gh-markdown-cli@0.2.0\r\nnpm ERR! max depth reached: eyes@0.1.8, required by http-console@0.6.2\r\nnpm ERR! max depth reached: underscore@1.4.0, required by js2coffee@0.2.0\r\nnpm ERR! max depth reached: file@0.2.1, required by js2coffee@0.2.0\r\nnpm ERR! max depth reached: watch@0.5.0, required by lyvus@0.0.3\r\nnpm ERR! max depth reached: express@2.5.6, required by lyvus@0.0.3\r\nnpm ERR! max depth reached: jade@0.20.0, required by lyvus@0.0.3\r\nnpm ERR! max depth reached: lru-cache@2.0.4, required by minimatch@0.2.6\r\nnpm ERR! max depth reached: bson@0.1.3, required by mongodb@1.1.7\r\nnpm ERR! max depth reached: express@2.5.11, required by nide@0.2.0\r\nnpm ERR! max depth reached: dive@0.2.0, required by nide@0.2.0\r\nnpm ERR! max depth reached: node-uuid@1.3.3, required by nide@0.2.0\r\nnpm ERR! max depth reached: glob@3.1.13, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: graceful-fs@1.1.14, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: fstream@0.1.19, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: mkdirp@0.3.4, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: npmlog@0.0.2, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: osenv@0.0.3, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: request@2.9.203, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: rimraf@2.0.2, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: semver@1.0.14, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: tar@0.1.13, required by node-gyp@0.6.11\r\nnpm ERR! max depth reached: which@1.0.5, required by node-gyp@0.6.11\r\nnpm ERR! invalid: nopt@2.0.0 /usr/local/lib/node_modules/nopt\r\nnpm ERR! max depth reached: abbrev@1.0.3, required by nopt@2.0.0\r\nnpm ERR! max depth reached: semver@1.0.14, required by npm@1.1.62\r\nnpm ERR! max depth reached: ini@1.0.4, required by npm@1.1.62\r\nnpm ERR! max depth reached: slide@1.1.3, required by npm@1.1.62\r\nnpm ERR! max depth reached: abbrev@1.0.3, required by npm@1.1.62\r\nnpm ERR! max depth reached: graceful-fs@1.1.14, required by npm@1.1.62\r\nnpm ERR! max depth reached: rimraf@2.0.2, required by npm@1.1.62\r\nnpm ERR! max depth reached: request@2.9.203, required by npm@1.1.62\r\nnpm ERR! max depth reached: which@1.0.5, required by npm@1.1.62\r\nnpm ERR! max depth reached: tar@0.1.13, required by npm@1.1.62\r\nnpm ERR! max depth reached: fstream@0.1.19, required by npm@1.1.62\r\nnpm ERR! max depth reached: block-stream@0.0.6, required by npm@1.1.62\r\nnpm ERR! max depth reached: inherits@1.0.0, required by npm@1.1.62\r\nnpm ERR! max depth reached: mkdirp@0.3.4, required by npm@1.1.62\r\nnpm ERR! max depth reached: read@1.0.4, required by npm@1.1.62\r\nnpm ERR! max depth reached: lru-cache@2.0.4, required by npm@1.1.62\r\nnpm ERR! max depth reached: fstream-npm@0.1.2, required by npm@1.1.62\r\nnpm ERR! max depth reached: uid-number@0.0.3, required by npm@1.1.62\r\nnpm ERR! max depth reached: archy@0.0.2, required by npm@1.1.62\r\nnpm ERR! max depth reached: chownr@0.0.1, required by npm@1.1.62\r\nnpm ERR! max depth reached: npmlog@0.0.2, required by npm@1.1.62\r\nnpm ERR! max depth reached: ansi@0.1.2, required by npm@1.1.62\r\nnpm ERR! max depth reached: npm-registry-client@0.2.7, required by npm@1.1.62\r\nnpm ERR! max depth reached: read-package-json@0.1.6, required by npm@1.1.62\r\nnpm ERR! max depth reached: read-installed@0.0.2, required by npm@1.1.62\r\nnpm ERR! max depth reached: glob@3.1.13, required by npm@1.1.62\r\nnpm ERR! max depth reached: init-package-json@0.0.5, required by npm@1.1.62\r\nnpm ERR! max depth reached: osenv@0.0.3, required by npm@1.1.62\r\nnpm ERR! max depth reached: lockfile@0.2.1, required by npm@1.1.62\r\nnpm ERR! max depth reached: retry@0.6.0, required by npm@1.1.62\r\nnpm ERR! max depth reached: couch-login@0.1.14, required by npm@1.1.62\r\nnpm ERR! max depth reached: once@1.1.1, required by npm@1.1.62\r\nnpm ERR! max depth reached: npmconf@0.0.16, required by npm@1.1.62\r\nnpm ERR! max depth reached: opener@1.3.0, required by npm@1.1.62\r\nnpm ERR! max depth reached: async@0.1.22, required by scaffolder@0.6.5\r\nnpm ERR! max depth reached: debug@0.7.0, required by scaffolder@0.6.5\r\nnpm ERR! max depth reached: out@0.4.3, required by scaffolder@0.6.5\r\nnpm ERR! max depth reached: read@0.1.1, required by scaffolder@0.6.5\r\nnpm ERR! max depth reached: squirrel@0.1.1, required by scaffolder@0.6.5\r\nnpm ERR! max depth reached: underscore@1.3.3, required by scaffolder@0.6.5\r\nnpm ERR! invalid: socket.io@0.9.10 /usr/local/lib/node_modules/socket.io\r\nnpm ERR! max depth reached: socket.io-client@0.9.10, required by socket.io@0.9.10\r\nnpm ERR! max depth reached: policyfile@0.0.4, required by socket.io@0.9.10\r\nnpm ERR! max depth reached: redis@0.7.2, required by socket.io@0.9.10\r\nnpm ERR! invalid: stylus@0.29.0 /usr/local/lib/node_modules/stylus\r\nnpm ERR! max depth reached: cssom@0.2.5, required by stylus@0.29.0\r\nnpm ERR! max depth reached: mkdirp@0.3.4, required by stylus@0.29.0\r\nnpm ERR! max depth reached: debug@0.7.0, required by stylus@0.29.0\r\nnpm ERR! max depth reached: parseopt@1.0.0-2, required by vogue@0.4.3\r\nnpm ERR! max depth reached: eyes@0.1.8, required by vows@0.6.4\r\nnpm ERR! max depth reached: diff@1.0.3, required by vows@0.6.4\r\nnpm ERR! max depth reached: optimist@0.3.4, required by watch-tree@0.1.1\r\nnpm ERR! max depth reached: async@0.1.22, required by watch-tree@0.1.1\r\nnpm ERR! max depth reached: underscore@1.4.0, required by watch-tree@0.1.1\r\nnpm ERR! max depth reached: async_testing@0.3.2, required by watch-tree@0.1.1\r\nnpm ERR! max depth reached: cli@0.4.4-2, required by watchman@0.1.5\r\nnpm ERR! max depth reached: tinycolor@0.0.1, required by ws@0.4.21\r\nnpm ERR! max depth reached: options@0.0.3, required by ws@0.4.21\r\nnpm ERR! max depth reached: ltx@0.2.2, required by xmlson@0.0.5\r\nnpm ERR! max depth reached: async@0.1.22, required by xmlson@0.0.5\r\nnpm ERR! not ok code 0\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/165221577","html_url":"https://github.com/npm/npm/issues/2843#issuecomment-165221577","issue_url":"https://api.github.com/repos/npm/npm/issues/2843","id":165221577,"user":{"login":"fernandoPalaciosGit","id":4712282,"avatar_url":"https://avatars.githubusercontent.com/u/4712282?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandoPalaciosGit","html_url":"https://github.com/fernandoPalaciosGit","followers_url":"https://api.github.com/users/fernandoPalaciosGit/followers","following_url":"https://api.github.com/users/fernandoPalaciosGit/following{/other_user}","gists_url":"https://api.github.com/users/fernandoPalaciosGit/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandoPalaciosGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandoPalaciosGit/subscriptions","organizations_url":"https://api.github.com/users/fernandoPalaciosGit/orgs","repos_url":"https://api.github.com/users/fernandoPalaciosGit/repos","events_url":"https://api.github.com/users/fernandoPalaciosGit/events{/privacy}","received_events_url":"https://api.github.com/users/fernandoPalaciosGit/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T19:30:22Z","updated_at":"2015-12-16T19:30:22Z","body":"+1 same prooblem in **Ubuntu 14.04.3, NPM 1.3.10, NODE 0.10.25**"}}