ngokevin / angle

:clock430: A-Frame command-line tool for installing components and scaffolding templates.
https://www.npmjs.com/package/angle
MIT License
80 stars 20 forks source link

Install layout component failed. #41

Open perrychen901105 opened 6 years ago

perrychen901105 commented 6 years ago

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.

danorak commented 6 years ago

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

technotherion commented 6 years ago

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

dsinni commented 6 years ago

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:

Thanks.