angle icon indicating copy to clipboard operation
angle copied to clipboard

Install layout component failed.

Open perrychen901105 opened this issue 7 years ago • 3 comments

I follow the tutorial https://aframe.io/docs/0.7.0/guides/building-a-360-image-gallery.html# to install the layout and other components, but when I use angle to install the related components, it gives me below errors:

Installing A-Frame component layout to index.html Detected A-Frame version 0.7.0 /Users/pchen143/.nvm/versions/node/v8.9.1/lib/node_modules/angle/lib/install.js:57 if (moduleName in registry[version].components) { ^

TypeError: Cannot read property 'components' of undefined at Command.install (/Users/pchen143/.nvm/versions/node/v8.9.1/lib/node_modules/angle/lib/install.js:57:39) at Command.listener (/Users/pchen143/.nvm/versions/node/v8.9.1/lib/node_modules/angle/node_modules/commander/index.js:315:8) at emitTwo (events.js:126:13) at Command.emit (events.js:214:7) at Command.parseArgs (/Users/pchen143/.nvm/versions/node/v8.9.1/lib/node_modules/angle/node_modules/commander/index.js:653:12) at Command.parse (/Users/pchen143/.nvm/versions/node/v8.9.1/lib/node_modules/angle/node_modules/commander/index.js:475:21) at Object. (/Users/pchen143/.nvm/versions/node/v8.9.1/lib/node_modules/angle/index.js:27:4) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32)

I use the command 'npm uninstall -g angle' and 'angle install layout'. My node version is 8.9.1.

perrychen901105 avatar Dec 07 '17 10:12 perrychen901105

I have exactly the same issue - anyone have any idea what the issue is?

danorak avatar Jan 30 '18 16:01 danorak

I've noted that angle seems to have some weird permission errors. Try sudo npm install -g angle instead.

technotherion avatar Feb 11 '18 04:02 technotherion

Same. Can't seem to install any components with angle install, up to and including version 0.8.2 (thanks for updating the A-Frame version).

I've tried the following formats with multiple components to no avail:

  • angle install aframe-extras
  • angle install aframe-extras index.html

Thanks.

dsinni avatar Jul 23 '18 19:07 dsinni