Skip to content

Instantly share code, notes, and snippets.

@smikes
Created December 20, 2014 13:14
Show Gist options
  • Save smikes/daf021d1eb588536bad5 to your computer and use it in GitHub Desktop.
Save smikes/daf021d1eb588536bad5 to your computer and use it in GitHub Desktop.
2556-npm-install-link-fails-with-git-dependency
0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli '/Users/smikes/.nvm/v0.10.33/bin/npm',
1 verbose cli 'i',
1 verbose cli '--link',
1 verbose cli '-ddd' ]
2 info using npm@2.1.12
3 info using node@v0.10.33
4 warn package.json parent@1.2.3 No description
5 warn package.json parent@1.2.3 No repository field.
6 warn package.json parent@1.2.3 No README data
7 verbose install where, deps [ '/Users/smikes/src/github/npm/test/tap/git-dependency-install-link',
7 verbose install [ 'child' ] ]
8 verbose install where, peers [ '/Users/smikes/src/github/npm/test/tap/git-dependency-install-link',
8 verbose install [] ]
9 info preinstall parent@1.2.3
10 warn package.json child@0.1.0 No description
11 warn package.json child@0.1.0 No repository field.
12 silly cache add args [ 'child@git://localhost:1234/child.git', null ]
13 verbose cache add spec child@git://localhost:1234/child.git
14 silly cache add parsed spec { raw: 'child@git://localhost:1234/child.git',
14 silly cache add scope: null,
14 silly cache add name: 'child',
14 silly cache add rawSpec: 'git://localhost:1234/child.git',
14 silly cache add spec: 'git://localhost:1234/child.git',
14 silly cache add type: 'git' }
15 verbose addRemoteGit u="git://localhost:1234/child.git" silent=false
16 silly addRemoteGit parsed { protocol: 'git:',
16 silly addRemoteGit slashes: true,
16 silly addRemoteGit auth: null,
16 silly addRemoteGit host: 'localhost:1234',
16 silly addRemoteGit port: '1234',
16 silly addRemoteGit hostname: 'localhost',
16 silly addRemoteGit hash: null,
16 silly addRemoteGit search: '',
16 silly addRemoteGit query: {},
16 silly addRemoteGit pathname: '/child.git',
16 silly addRemoteGit path: '/child.git',
16 silly addRemoteGit href: 'git://localhost:1234/child.git' }
17 verbose addRemoteGit git://localhost:1234/child.git not in flight; cloning
18 verbose addRemoteGit [ 'git://localhost:1234/child.git', 'master' ]
19 info git [ 'config', '--get', 'remote.origin.url' ]
20 verbose git remote.origin.url git://localhost:1234/child.git
21 info git [ 'fetch', '-a', 'origin' ]
22 verbose git fetch -a origin (git://localhost:1234/child.git)
23 info git [ 'rev-list', '-n1', 'master' ]
24 verbose git rev-list -n1 master ced5f8c3ecbd04bc340b1a2a42bfee161f751a80
25 verbose resolved git url git://localhost:1234/child.git#ced5f8c3ecbd04bc340b1a2a42bfee161f751a80
26 info git [ 'clone',
26 info git '/Users/smikes/.npm/_git-remotes/git-localhost-1234-child-git-7ee27a8d',
26 info git '/var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-2582-db191cb0/1419078321635-0.5267900978215039/ced5f8c3ecbd04bc340b1a2a42bfee161f751a80' ]
27 verbose git clone from /Users/smikes/.npm/_git-remotes/git-localhost-1234-child-git-7ee27a8d
28 verbose git clone Cloning into '/var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-2582-db191cb0/1419078321635-0.5267900978215039/ced5f8c3ecbd04bc340b1a2a42bfee161f751a80'...
28 verbose git clone done.
29 info git [ 'checkout', 'ced5f8c3ecbd04bc340b1a2a42bfee161f751a80' ]
30 verbose git checkout Note: checking out 'ced5f8c3ecbd04bc340b1a2a42bfee161f751a80'.
30 verbose git checkout
30 verbose git checkout You are in 'detached HEAD' state. You can look around, make experimental
30 verbose git checkout changes and commit them, and you can discard any commits you make in this
30 verbose git checkout state without impacting any branches by performing another checkout.
30 verbose git checkout
30 verbose git checkout If you want to create a new branch to retain commits you create, you may
30 verbose git checkout do so (now or later) by using -b with the checkout command again. Example:
30 verbose git checkout
30 verbose git checkout git checkout -b new_branch_name
30 verbose git checkout
30 verbose git checkout HEAD is now at ced5f8c... stub package
31 verbose tar pack [ '/Users/smikes/.npm/child/0.1.0/package.tgz',
31 verbose tar pack '/var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-2582-db191cb0/1419078321635-0.5267900978215039/ced5f8c3ecbd04bc340b1a2a42bfee161f751a80' ]
32 verbose tarball /Users/smikes/.npm/child/0.1.0/package.tgz
33 verbose folder /var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-2582-db191cb0/1419078321635-0.5267900978215039/ced5f8c3ecbd04bc340b1a2a42bfee161f751a80
34 verbose addLocalTarball adding from inside cache /Users/smikes/.npm/child/0.1.0/package.tgz
35 silly cache afterAdd child@0.1.0
36 verbose afterAdd /Users/smikes/.npm/child/0.1.0/package/package.json not in flight; writing
37 verbose afterAdd /Users/smikes/.npm/child/0.1.0/package/package.json written
38 silly install resolved [ { name: 'child',
38 silly install resolved version: '0.1.0',
38 silly install resolved gitHead: 'ced5f8c3ecbd04bc340b1a2a42bfee161f751a80',
38 silly install resolved readme: 'ERROR: No README data found!',
38 silly install resolved _id: 'child@0.1.0',
38 silly install resolved _shasum: '944cc8066611b4d7d2273df1c6532930cac92cb3',
38 silly install resolved _from: '../../../../../../../../var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-2582-db191cb0/1419078321635-0.5267900978215039/ced5f8c3ecbd04bc340b1a2a42bfee161f751a80',
38 silly install resolved _resolved: 'git://localhost:1234/child.git#ced5f8c3ecbd04bc340b1a2a42bfee161f751a80' } ]
39 info install child@0.1.0 into /Users/smikes/src/github/npm/test/tap/git-dependency-install-link
40 info installOne child@0.1.0
41 verbose localLink child@0.1.0
42 verbose install where, what [ '/Users/smikes/.nvm/v0.10.33/lib', [ 'child@0.1.0' ] ]
43 warn package.json bats@v0.4.0 No repository field.
44 silly cache add args [ 'child@0.1.0', null ]
45 verbose cache add spec child@0.1.0
46 silly cache add parsed spec { raw: 'child@0.1.0',
46 silly cache add scope: null,
46 silly cache add name: 'child',
46 silly cache add rawSpec: '0.1.0',
46 silly cache add spec: '0.1.0',
46 silly cache add type: 'version' }
47 verbose addNamed child@0.1.0
48 silly addNamed semver.valid 0.1.0
49 silly addNamed semver.validRange 0.1.0
50 silly mapToRegistry name child
51 silly mapToRegistry using default registry
52 silly mapToRegistry registry https://registry.npmjs.org/
53 silly mapToRegistry uri https://registry.npmjs.org/child
54 verbose addNameVersion registry:https://registry.npmjs.org/child not in flight; fetching
55 verbose request uri https://registry.npmjs.org/child
56 verbose request no auth needed
57 info attempt registry request try #1 at 05:25:21
58 verbose request id 4dfb77df50898bcb
59 verbose etag "NWQDHY4QTZ72INXF3O5L9U4V"
60 http request GET https://registry.npmjs.org/child
61 http 304 https://registry.npmjs.org/child
62 silly get cb [ 304,
62 silly get { date: 'Sat, 20 Dec 2014 12:25:19 GMT',
62 silly get server: 'Apache',
62 silly get via: '1.1 varnish',
62 silly get 'last-modified': 'Sat, 20 Dec 2014 12:25:19 GMT',
62 silly get 'cache-control': 'max-age=60',
62 silly get etag: '"NWQDHY4QTZ72INXF3O5L9U4V"',
62 silly get age: '47',
62 silly get 'x-served-by': 'cache-ord1735-ORD',
62 silly get 'x-cache': 'HIT',
62 silly get 'x-cache-hits': '1',
62 silly get 'x-timer': 'S1419078319.764248,VS0,VE0',
62 silly get vary: 'Accept',
62 silly get 'content-length': '0',
62 silly get 'keep-alive': 'timeout=10, max=50',
62 silly get connection: 'Keep-Alive' } ]
63 verbose etag https://registry.npmjs.org/child from cache
64 verbose stack Error: version not found: child@0.1.0
64 verbose stack at setData (/Users/smikes/.nvm/v0.10.33/lib/node_modules/npm/lib/cache/add-named.js:122:12)
64 verbose stack at RES (/Users/smikes/.nvm/v0.10.33/lib/node_modules/npm/node_modules/inflight/inflight.js:23:14)
64 verbose stack at f (/Users/smikes/.nvm/v0.10.33/lib/node_modules/npm/node_modules/once/once.js:17:25)
64 verbose stack at saved (/Users/smikes/.nvm/v0.10.33/lib/node_modules/npm/lib/cache/caching-client.js:163:7)
64 verbose stack at Object.oncomplete (fs.js:107:15)
65 verbose statusCode 404
66 verbose cwd /Users/smikes/src/github/npm/test/tap/git-dependency-install-link
67 error Darwin 14.0.0
68 error argv "node" "/Users/smikes/.nvm/v0.10.33/bin/npm" "i" "--link" "-ddd"
69 error node v0.10.33
70 error npm v2.1.12
71 error version not found: child@0.1.0
72 error If you need help, you may report this error at:
72 error <http://github.com/npm/npm/issues>
73 verbose exit [ 1, true ]
npm info git [ 'init' ]
npm info git [ 'config', 'user.name', 'PhantomFaker' ]
npm info git [ 'config', 'user.email', 'nope@not.real' ]
npm info git [ 'add', 'package.json' ]
npm info git [ 'commit', '-m', 'stub package' ]
npm info git [ 'clone',
npm info git '--bare',
npm info git '/Users/smikes/src/github/npm/test/tap/git-dependency-install-link-repo',
npm info git 'child.git' ]
npm info git [ 'daemon',
npm info git '--listen=localhost',
npm info git '--export-all',
npm info git '--base-path=.',
npm info git '--port=1234' ]
npm verb install where, what [ '/Users/smikes/src/github/npm/test/tap/git-dependency-install-link',
npm verb install [] ]
npm WARN package.json parent@1.2.3 No description
npm WARN package.json parent@1.2.3 No repository field.
npm WARN package.json parent@1.2.3 No README data
npm verb install where, deps [ '/Users/smikes/src/github/npm/test/tap/git-dependency-install-link',
npm verb install [ 'child' ] ]
npm verb install where, peers [ '/Users/smikes/src/github/npm/test/tap/git-dependency-install-link',
npm verb install [] ]
npm info preinstall parent@1.2.3
npm sill cache add args [ 'child@git://localhost:1234/child.git', null ]
npm verb cache add spec child@git://localhost:1234/child.git
npm sill cache add parsed spec { raw: 'child@git://localhost:1234/child.git',
npm sill cache add scope: null,
npm sill cache add name: 'child',
npm sill cache add rawSpec: 'git://localhost:1234/child.git',
npm sill cache add spec: 'git://localhost:1234/child.git',
npm sill cache add type: 'git' }
npm verb addRemoteGit u="git://localhost:1234/child.git" silent=false
npm sill addRemoteGit parsed { protocol: 'git:',
npm sill addRemoteGit slashes: true,
npm sill addRemoteGit auth: null,
npm sill addRemoteGit host: 'localhost:1234',
npm sill addRemoteGit port: '1234',
npm sill addRemoteGit hostname: 'localhost',
npm sill addRemoteGit hash: null,
npm sill addRemoteGit search: '',
npm sill addRemoteGit query: {},
npm sill addRemoteGit pathname: '/child.git',
npm sill addRemoteGit path: '/child.git',
npm sill addRemoteGit href: 'git://localhost:1234/child.git' }
npm verb addRemoteGit git://localhost:1234/child.git not in flight; cloning
npm verb addRemoteGit [ 'git://localhost:1234/child.git', 'master' ]
npm info git [ 'config', '--get', 'remote.origin.url' ]
npm verb git remote.origin.url git://localhost:1234/child.git
npm info git [ 'fetch', '-a', 'origin' ]
npm verb git fetch -a origin (git://localhost:1234/child.git) warning: no common commits
npm verb git fetch -a origin (git://localhost:1234/child.git) From git://localhost:1234/child
npm verb git fetch -a origin (git://localhost:1234/child.git) + 0c3f3b5...c78469a master -> master (forced update)
npm info git [ 'rev-list', '-n1', 'master' ]
npm verb git rev-list -n1 master c78469a49154b86a173d94251b8910f69a1c1cf0
npm verb resolved git url git://localhost:1234/child.git#c78469a49154b86a173d94251b8910f69a1c1cf0
npm info git [ 'clone',
npm info git '/Users/smikes/src/github/npm/test/npm_cache/_git-remotes/git-localhost-1234-child-git-7ee27a8d',
npm info git '/var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-3218-3f6776e2/1419079844219-0.4762103434186429/c78469a49154b86a173d94251b8910f69a1c1cf0' ]
npm verb git clone from /Users/smikes/src/github/npm/test/npm_cache/_git-remotes/git-localhost-1234-child-git-7ee27a8d
npm verb git clone Cloning into '/var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-3218-3f6776e2/1419079844219-0.4762103434186429/c78469a49154b86a173d94251b8910f69a1c1cf0'...
npm verb git clone done.
npm info git [ 'checkout', 'c78469a49154b86a173d94251b8910f69a1c1cf0' ]
npm verb git checkout Note: checking out 'c78469a49154b86a173d94251b8910f69a1c1cf0'.
npm verb git checkout
npm verb git checkout You are in 'detached HEAD' state. You can look around, make experimental
npm verb git checkout changes and commit them, and you can discard any commits you make in this
npm verb git checkout state without impacting any branches by performing another checkout.
npm verb git checkout
npm verb git checkout If you want to create a new branch to retain commits you create, you may
npm verb git checkout do so (now or later) by using -b with the checkout command again. Example:
npm verb git checkout
npm verb git checkout git checkout -b new_branch_name
npm verb git checkout
npm verb git checkout HEAD is now at c78469a... stub package
npm verb tar pack [ '/Users/smikes/src/github/npm/test/npm_cache/child/0.1.0/package.tgz',
npm verb tar pack '/var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-3218-3f6776e2/1419079844219-0.4762103434186429/c78469a49154b86a173d94251b8910f69a1c1cf0' ]
npm verb tarball /Users/smikes/src/github/npm/test/npm_cache/child/0.1.0/package.tgz
npm verb folder /var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-3218-3f6776e2/1419079844219-0.4762103434186429/c78469a49154b86a173d94251b8910f69a1c1cf0
npm verb addLocalTarball adding from inside cache /Users/smikes/src/github/npm/test/npm_cache/child/0.1.0/package.tgz
npm sill cache afterAdd child@0.1.0
npm verb afterAdd /Users/smikes/src/github/npm/test/npm_cache/child/0.1.0/package/package.json not in flight; writing
npm verb afterAdd /Users/smikes/src/github/npm/test/npm_cache/child/0.1.0/package/package.json written
npm sill install resolved [ { name: 'child',
npm sill install resolved version: '0.1.0',
npm sill install resolved gitHead: 'c78469a49154b86a173d94251b8910f69a1c1cf0',
npm sill install resolved readme: 'ERROR: No README data found!',
npm sill install resolved _id: 'child@0.1.0',
npm sill install resolved _shasum: '56f588a62a5c049edfda996df7f45f977049c183',
npm sill install resolved _from: '../../../../../var/folders/ml/dl5f4hk17bv0ht7tgxvvsw7c0000gn/T/npm-3218-3f6776e2/1419079844219-0.4762103434186429/c78469a49154b86a173d94251b8910f69a1c1cf0',
npm sill install resolved _resolved: 'git://localhost:1234/child.git#c78469a49154b86a173d94251b8910f69a1c1cf0' } ]
npm info install child@0.1.0 into /Users/smikes/src/github/npm/test/tap/git-dependency-install-link
npm info installOne child@0.1.0
npm verb installOne of child to /Users/smikes/src/github/npm/test/tap/git-dependency-install-link not in flight; installing
npm verb lock using /Users/smikes/src/github/npm/test/npm_cache/_locks/child-81f77e60a28ec961.lock for /Users/smikes/src/github/npm/test/tap/git-dependency-install-link/node_modules/child
npm sill install write writing child 0.1.0 to /Users/smikes/src/github/npm/test/tap/git-dependency-install-link/node_modules/child
npm sill cache addNamed cb child@0.1.0
npm verb unbuild test/tap/git-dependency-install-link/node_modules/child
npm verb gentlyRm vacuuming /Users/smikes/src/github/npm/test/tap/git-dependency-install-link/node_modules/child
npm verb tar unpack /Users/smikes/src/github/npm/test/npm_cache/child/0.1.0/package.tgz
npm verb tar unpacking to /Users/smikes/src/github/npm/test/tap/git-dependency-install-link/node_modules/child
npm verb gentlyRm vacuuming /Users/smikes/src/github/npm/test/tap/git-dependency-install-link/node_modules/child
npm sill gunzTarPerm modes [ '755', '644' ]
npm sill gunzTarPerm extractEntry package.json
npm info preinstall child@0.1.0
npm sill install resolved []
npm verb about to build /Users/smikes/src/github/npm/test/tap/git-dependency-install-link/node_modules/child
npm info build /Users/smikes/src/github/npm/test/tap/git-dependency-install-link/node_modules/child
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/smikes/src/github/npm/test/tap/git-dependency-install-link/node_modules' ]
npm info linkStuff child@0.1.0
npm verb linkBins child@0.1.0
npm verb linkMans child@0.1.0
npm verb rebuildBundles child@0.1.0
npm info install child@0.1.0
npm info postinstall child@0.1.0
npm verb unlock done using /Users/smikes/src/github/npm/test/npm_cache/_locks/child-81f77e60a28ec961.lock for /Users/smikes/src/github/npm/test/tap/git-dependency-install-link/node_modules/child
npm info build /Users/smikes/src/github/npm/test/tap/git-dependency-install-link
npm verb linkStuff [ false, false, false, '/Users/smikes/src/github/npm/test/tap' ]
npm info linkStuff parent@1.2.3
npm verb linkBins parent@1.2.3
npm verb linkMans parent@1.2.3
npm verb rebuildBundles parent@1.2.3
npm verb rebuildBundles [ 'child' ]
npm info install parent@1.2.3
npm info postinstall parent@1.2.3
npm info prepublish parent@1.2.3
ok test/tap/git-dependency-install-link.js .............. 4/4
total ................................................... 4/4
ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment