Skip to content

'vue init webpack',SyntaxError: Unexpected end of JSON input #545

Closed
@sandmanman

Description

@sandmanman

node

node -v
v8.2.1

npm

npm -v
5.3.0

log

vue-init webpack

? Generate project in current directory? Yes

undefined:1
{"_id":"vue-cli","_rev":"73-765c2c042d41b6f806932a869635c769","name":"vue-cli","description":"A simple CLI for scaffolding Vue.js projects.","dist-tags":{"latest":"2.8.2"},"versions":{"1.0.0":{"name":"vue-cli","version":"1.0.0","description":"Opinionated CLI for starting Vue.js single page applications","preferGlobal":true,"bin":{"vue":"bin/vue"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/vuejs/vue-cli.git"},"keywords":["vue","cli","spa"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/vuejs/vue-cli/issues"},"homepage":"https://github.com/vuejs/vue-cli#readme","main":"lib/index.js","dependencies":{"chalk":"^1.1.1","commander":"^2.9.0","download-github-repo":"^0.1.3","khaos":"^0.9.3","read-metadata":"^1.0.0","request":"^2.67.0","rimraf":"^2.5.0","uid":"0.0.2"},"gitHead":"c3daf7b2f7d3e27bf5a6b31c5ff28a6f05df47b1","_id":"vue-cli@1.0.0","_shasum":"97c5d6e66ced1931d05c13fb459c5331c25b9a85","_from":".","_npmVersion":"3.3.12","_nod

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Request._callback (/Users/sandman/.nvm/versions/node/v8.2.1/lib/node_modules/vue-cli/lib/check-version.js:19:32)
    at Request.self.callback (/Users/sandman/.nvm/versions/node/v8.2.1/lib/node_modules/vue-cli/node_modules/request/request.js:188:22)
    at emitTwo (events.js:125:13)
    at Request.emit (events.js:213:7)
    at Request.<anonymous> (/Users/sandman/.nvm/versions/node/v8.2.1/lib/node_modules/vue-cli/node_modules/request/request.js:1171:10)
    at emitOne (events.js:115:13)
    at Request.emit (events.js:210:7)
    at IncomingMessage.<anonymous> (/Users/sandman/.nvm/versions/node/v8.2.1/lib/node_modules/vue-cli/node_modules/request/request.js:1091:12)
    at Object.onceWrapper (events.js:314:30)
    at emitNone (events.js:110:20)
    at IncomingMessage.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1045:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions