Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got error after updated #90

Closed
anhnhoktvn opened this issue May 2, 2016 · 4 comments
Closed

Got error after updated #90

anhnhoktvn opened this issue May 2, 2016 · 4 comments

Comments

@anhnhoktvn
Copy link

$ vue help list

Available official templates:

/home/xxx/.nvm/versions/node/v5.11.0/lib/node_modules/vue-cli/bin/vue-list:29
JSON.parse(body).forEach(function (repo) {
^

TypeError: JSON.parse(...).forEach is not a function
at Request._callback (/home/xxx/.nvm/versions/node/v5.11.0/lib/node_modules/vue-cli/bin/vue-list:29:20)
at Request.self.callback (/home/xxx/.nvm/versions/node/v5.11.0/lib/node_modules/vue-cli/node_modules/request/request.js:200:22)
at emitTwo (events.js:100:13)
at Request.emit (events.js:185:7)
at Request. (/home/xxx/.nvm/versions/node/v5.11.0/lib/node_modules/vue-cli/node_modules/request/request.js:1067:10)
at emitOne (events.js:95:20)
at Request.emit (events.js:182:7)
at IncomingMessage. (/home/xxx/.nvm/versions/node/v5.11.0/lib/node_modules/vue-cli/node_modules/request/request.js:988:12)
at emitNone (events.js:85:20)
at IncomingMessage.emit (events.js:179:7)

@anhnhoktvn
Copy link
Author

It seems that I got github API rate limit exceeded. How can I add a github token for vue-cli?

@zigomir
Copy link
Contributor

zigomir commented May 2, 2016

Why would you need to run list command so many times?

@anhnhoktvn
Copy link
Author

I use octotree chrome extension, which uses github API many times. I think i should get rid of octotree.

@ip2k
Copy link

ip2k commented Apr 24, 2018

See #368 (comment) . Basically, you need to do something like add export GITHUB_PERSONAL_ACCESS_TOKEN=foo to your .bashrc or .zshrc and reload it (e.g. source ~/.bashrc) or open a new terminal session. You can generate a new Github Personal Access Token at https://github.com/settings/tokens .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants