aframe: `npm install aframe@5.0.0` fails: fetchPackageMetaData error: pathspec 'a02a8089b' did not match any file(s) known to git.

Description:

  • A-Frame Version: 0.5.0
  • Platform / Device: all
  • Reproducible Code Snippet or URL:

Just run this install to aframe version 0.5.0:

npm install aframe
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.0.0_1/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   'aframe' ]
2 info using npm@5.0.1
3 info using node@v8.0.0
4 silly install loadCurrentTree
5 silly install readLocalPackageData
6 http fetch GET 200 https://registry.npmjs.org/aframe 734ms
7 silly pacote tag manifest for aframe@latest fetched in 776ms
8 silly install loadIdealTree
9 silly install cloneCurrentTreeToIdealTree
10 silly install loadShrinkwrap
11 silly install loadAllDepsIntoIdealTree
12 silly resolveWithNewModule aframe@0.5.0 checking installable status
13 http fetch GET 304 https://registry.npmjs.org/deep-assign 77ms (from cache)
14 silly pacote range manifest for deep-assign@^2.0.0 fetched in 79ms
15 silly resolveWithNewModule deep-assign@2.0.0 checking installable status
16 http fetch GET 304 https://registry.npmjs.org/style-attr 155ms (from cache)
17 http fetch GET 304 https://registry.npmjs.org/object-assign 158ms (from cache)
18 http fetch GET 304 https://registry.npmjs.org/three 91ms (from cache)
19 silly pacote range manifest for object-assign@^4.0.1 fetched in 175ms
20 silly resolveWithNewModule object-assign@4.1.1 checking installable status
21 silly pacote range manifest for style-attr@^1.0.2 fetched in 173ms
22 silly resolveWithNewModule style-attr@1.3.0 checking installable status
23 silly pacote range manifest for three@^0.83.0 fetched in 112ms
24 silly resolveWithNewModule three@0.83.0 checking installable status
25 http fetch GET 304 https://registry.npmjs.org/debug 229ms (from cache)
26 silly pacote range manifest for debug@^2.2.0 fetched in 231ms
27 silly resolveWithNewModule debug@2.6.8 checking installable status
28 http fetch GET 304 https://registry.npmjs.org/tween.js 47ms (from cache)
29 silly pacote range manifest for tween.js@^15.0.0 fetched in 50ms
30 warn deprecated tween.js@15.0.0: This package has moved to @tweenjs/tween.js. Please update your dependencies.
31 silly resolveWithNewModule tween.js@15.0.0 checking installable status
32 http fetch GET 304 https://registry.npmjs.org/promise-polyfill 257ms (from cache)
33 http fetch GET 304 https://registry.npmjs.org/load-bmfont 263ms (from cache)
34 silly pacote range manifest for promise-polyfill@^3.1.0 fetched in 261ms
35 silly resolveWithNewModule promise-polyfill@3.1.0 checking installable status
36 silly pacote range manifest for load-bmfont@^1.2.3 fetched in 266ms
37 silly resolveWithNewModule load-bmfont@1.3.0 checking installable status
38 http fetch GET 304 https://registry.npmjs.org/envify 308ms (from cache)
39 http fetch GET 304 https://registry.npmjs.org/present 310ms (from cache)
40 http fetch GET 304 https://registry.npmjs.org/browserify-css 324ms (from cache)
41 silly pacote range manifest for envify@^3.4.1 fetched in 316ms
42 silly resolveWithNewModule envify@3.4.1 checking installable status
43 silly pacote version manifest for present@0.0.6 fetched in 316ms
44 silly resolveWithNewModule present@0.0.6 checking installable status
45 silly pacote range manifest for browserify-css@^0.8.2 fetched in 328ms
46 silly resolveWithNewModule browserify-css@0.8.4 checking installable status
47 http fetch GET 304 https://registry.npmjs.org/three-bmfont-text 162ms (from cache)
48 silly pacote range manifest for three-bmfont-text@^2.1.0 fetched in 164ms
49 silly resolveWithNewModule three-bmfont-text@2.2.1 checking installable status
50 info lifecycle document-register-element@0.5.4~prepack: document-register-element@0.5.4
51 silly lifecycle document-register-element@0.5.4~prepack: no script for prepack, continuing
52 verbose tar pack [ '/var/folders/zn/l4r1wmpj57q7h97088lcf6gw0000gn/T/npm-56448-5bf4136e/tmp/packing-6b2ac072/package.tgz',
52 verbose tar pack   '/Users/cvan/.npm/_cacache/tmp/git-clone-a2c71706' ]
53 verbose tarball /var/folders/zn/l4r1wmpj57q7h97088lcf6gw0000gn/T/npm-56448-5bf4136e/tmp/packing-6b2ac072/package.tgz
54 verbose folder /Users/cvan/.npm/_cacache/tmp/git-clone-a2c71706
55 info lifecycle document-register-element@0.5.4~postpack: document-register-element@0.5.4
56 silly lifecycle document-register-element@0.5.4~postpack: no script for postpack, continuing
57 silly pacote git manifest for document-register-element@github:dmarcos/document-register-element#8ccc532b7 fetched in 1728ms
58 silly resolveWithNewModule document-register-element@0.5.4 checking installable status
59 silly fetchPackageMetaData error for webvr-polyfill@github:dmarcos/webvr-polyfill#a02a8089b Command failed: /usr/local/bin/git checkout a02a8089b
59 silly fetchPackageMetaData error: pathspec 'a02a8089b' did not match any file(s) known to git.
60 verbose stack Error: Command failed: /usr/local/bin/git checkout a02a8089b
60 verbose stack error: pathspec 'a02a8089b' did not match any file(s) known to git.
60 verbose stack
60 verbose stack     at ChildProcess.exithandler (child_process.js:252:12)
60 verbose stack     at emitTwo (events.js:125:13)
60 verbose stack     at ChildProcess.emit (events.js:213:7)
60 verbose stack     at maybeClose (internal/child_process.js:887:16)
60 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
61 verbose cwd /private/tmp/atest
62 verbose Darwin 15.2.0
63 verbose argv "/usr/local/Cellar/node/8.0.0_1/bin/node" "/usr/local/bin/npm" "i" "aframe"
64 verbose node v8.0.0
65 verbose npm  v5.0.1
66 error code 1
67 error Command failed: /usr/local/bin/git checkout a02a8089b
67 error error: pathspec 'a02a8089b' did not match any file(s) known to git.
68 verbose exit [ 1, true ]

This is because in 0.5.0 the package.json points to dmarcos/webvr-polyfill#a02a8089b.

Even though the dmarcos/webvr-poylfill moved to aframevr/webvr-polyfill, GitHub keeps the old remote URLs around (and just adds deprecation notices). But npm does not.

@dmarcos: can you delete https://github.com/dmarcos/webvr-polyfill and re-fork aframevr/webvr-poylyfill?

(this may require you to delete your original fork from https://github.com/googlevr/webvr-polyfill, because GitHub doesn’t allow forks of forks.)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (18 by maintainers)

Most upvoted comments

So its an issue on my Windows 10 computer and a coworker’s Windows 10, and our Alpine servers running docker. However it works fine on a coworker’s Mac and another Windows 10 computer. May be related to the new Windows 10 update? but that wouldn’t explain your mac or our docker servers…

Fails: Windows 10 : npm v5.0.0 Windows 10 : npm v5.0.3 Alpine/Linux : npm v3.10.10

Works: Windows 10 : npm 3.10.8 Mac : npm (not sure)

Getting this on our servers as well, but they’ve been running updates for a while with no issues before now npm ERR! error: cannot run ssh: No such file or directory npm ERR! fatal: unable to fork

Still looking into it and will let you know if I find more. Thanks

It says Command failed: /usr/local/bin/git checkout a02a8089b.

The commit in question is https://github.com/dmarcos/webvr-polyfill/commit/a02a8089b. So, it seems to still be the webvr-polyfill dependency it’s fatal-erring on. I’ll try on another machine and clearing my cache too. I just hope others aren’t encountering the same problem of trying to install npm install aframe once and it not being fixed now.