isaacs/npm — Issue #2103: npm link A, npm link B (dependent on A) - fails
Author: opichals
Created: 2012-01-30 09:58:41+00:00
State: open

Reproduction material https://gist.github.com/775920

```
info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'link', './B' ]
info using npm@1.1.0-beta-10
info using node@v0.6.7
verbose config file /Users/standa/.npmrc
verbose config file /Users/standa/.node_modules/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
verbose caching /Users/standa/Sites/gdc/client/tmp/gist-775920/B/package.json
verbose loadDefaults B@1.0.0
verbose link: build target /Users/standa/.node_modules/lib/node_modules/B
verbose install(where, what) [ '/Users/standa/Sites/gdc/client/tmp/gist-775920/B', [] ]
verbose from cache /Users/standa/Sites/gdc/client/tmp/gist-775920/B/package.json
verbose where, deps [ '/Users/standa/Sites/gdc/client/tmp/gist-775920/B', [ 'A' ] ]
verbose from cache /Users/standa/Sites/gdc/client/tmp/gist-775920/B/package.json
info preinstall B@1.0.0
verbose from cache /Users/standa/Sites/gdc/client/tmp/gist-775920/B/package.json
verbose into /Users/standa/Sites/gdc/client/tmp/gist-775920/B [ 'A@>=1.0.0' ]
verbose cache add A@>=1.0.0
verbose cache add [ 'A@>=1.0.0', null ]
silly cache add: name, spec, args [ undefined, 'A@>=1.0.0', [ 'A@>=1.0.0', null ] ]
verbose parsed url { pathname: 'A@', path: 'A@', href: 'A@' }
silly cache add: name, spec, args [ 'A', '>=1.0.0', [ 'A', '>=1.0.0' ] ]
verbose parsed url { pathname: '=1.0.0', path: '=1.0.0', href: '=1.0.0' }
verbose addNamed [ 'A', '>=1.0.0' ]
verbose addNamed [ null, '>=1.0.0' ]
silly name, range, hasData [ 'A', '>=1.0.0', false ]
verbose raw, before any munging A
verbose url resolving [ 'https://registry.npmjs.org/', './A' ]
verbose url resolved https://registry.npmjs.org/A
http GET https://registry.npmjs.org/A
http 404 https://registry.npmjs.org/A
silly get cb [ 404,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb date: 'Thu, 19 Jan 2012 08:56:00 GMT',
silly get cb 'content-type': 'application/json',
silly get cb 'content-length': '52',
silly get cb 'cache-control': 'must-revalidate' } ]
ERR! 404 'A' is not in the npm registry.
ERR! 404 You could maybe bug the author to publish it
ERR! 404 Note that you can also install from a tarball or folder.
ERR!·
ERR! System Darwin 10.8.0
ERR! command "node" "/usr/local/bin/npm" "link" "./B"
ERR! cwd /Users/standa/Sites/gdc/client/tmp/gist-775920
ERR! node -v v0.6.7
ERR! npm -v 1.1.0-beta-10
ERR! code E404
ERR! message 404 Not Found: A
verbose exit [ 1, true ]
```