vuejs / ui

💻 UI components for official Vue organization apps
https://vuejs.github.io/ui/
1.33k stars 95 forks source link

vue ui install missed dependency read-pkg #5

Closed bluepuma77 closed 6 years ago

bluepuma77 commented 6 years ago

Brand new to vue, tried to follow this Medium article Vue UI: A First Look

Using OS X 10.11.6, node 8.11.3, vue 3.0.0-rc.4

$sudo npm install -g @vue/cli
+ @vue/cli@3.0.0-rc.4
added 693 packages in 28.583s

$ vue ui
ERROR  Error: Cannot find module 'read-pkg'
Error: Cannot find module 'read-pkg'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/folders.js:5:17)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

To fix it, had to manually install a dependency. $sudo npm install -g read-pkg

I assume this should be done automatically.

Akryum commented 6 years ago

Hi, you are in the wrong repository. This is the right one: https://github.com/vuejs/vue-cli