Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

cannot run npm ls in a package that includes npm@2.0.0-alpha.7 as a dev dep #6013

Closed
ceejbot opened this issue Aug 21, 2014 · 1 comment
Closed

Comments

@ceejbot
Copy link
Contributor

ceejbot commented Aug 21, 2014

It responds with Error: Unsupported URL Type: ssh://git@github.com:npm/npm#ccc1e2e0672c96c31f4a853d2d56271f2d076f34.

The full contents of npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'ls' ]
2 info using npm@2.0.0-alpha.7
3 info using node@v0.10.31
4 error Error: Unsupported URL Type: ssh://git@github.com:npm/npm#ccc1e2e0672c96c31f4a853d2d56271f2d076f34
4 error     at parseUrl (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:160:13)
4 error     at npa (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:74:12)
4 error     at makeArchy_ (/usr/local/lib/node_modules/npm/lib/ls.js:268:9)
4 error     at /usr/local/lib/node_modules/npm/lib/ls.js:283:14
4 error     at Array.map (native)
4 error     at makeArchy_ (/usr/local/lib/node_modules/npm/lib/ls.js:282:22)
4 error     at makeArchy (/usr/local/lib/node_modules/npm/lib/ls.js:215:13)
4 error     at /usr/local/lib/node_modules/npm/lib/ls.js:64:13
4 error     at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:137:5
4 error     at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:250:14
5 error If you need help, you may report this *entire* log,
5 error including the npm and node versions, at:
5 error     <http://github.com/npm/npm/issues>
6 error System Darwin 13.3.0
7 error command "node" "/usr/local/bin/npm" "ls"
8 error cwd /Users/ceej/code/npm-enterprise/registry-frontdoor
9 error node -v v0.10.31
10 error npm -v 2.0.0-alpha.7
11 verbose exit [ 1, true ]

The package.json itself does not mention the url in that format. It mentions npm in its dev dependencies this way:

"devDependencies": {
    "async": "^0.9.0",
    "lab": "^3.2.1",
    "nock": "^0.32.3",
    "npm": "git+ssh://git@github.com:npm/npm",
    "repl-client": "^0.3.0",
    "rimraf": "^2.2.8"
  }

Grepping through the files to find the commit hash turns this up:

✗⇒ find . -type f | xargs fgrep ccc1e2e0672c96c31f4a853d2d56271f2d076f34
./node_modules/npm/package.json:  "_resolved": "ssh://git@github.com:npm/npm#ccc1e2e0672c96c31f4a853d2d56271f2d076f34",
./npm-debug.log:4 error Error: Unsupported URL Type: ssh://git@github.com:npm/npm#ccc1e2e0672c96c31f4a853d2d56271f2d076f34

So it's the _resolved field in npm's own package.json file that's in an unparseable format.

@isaacs isaacs closed this as completed in 6c47201 Aug 21, 2014
@builtbylane
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants