Skip to content

vue init webpack my-project has an error: co(...).apply is not a function #571

Closed
@fujing125

Description

@fujing125

`
~ vue list

Available official templates:

★ browserify - A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
★ browserify-simple - A simple Browserify + vueify setup for quick prototyping.
★ pwa - PWA template for vue-cli based on the webpack template
★ simple - The simplest possible Vue setup in a single HTML file
★ webpack - A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
★ webpack-simple - A simple Webpack + vue-loader setup for quick prototyping.

➜ ~ vue init webpack my-project

/usr/local/lib/node_modules/vue-cli/node_modules/_unyield@0.0.1@unyield/index.js:29
? co(gen).apply(this, arguments)
^

TypeError: co(...).apply is not a function
at Metalsmith.build (/usr/local/lib/node_modules/vue-cli/node_modules/_unyield@0.0.1@unyield/index.js:29:17)
at generate (/usr/local/lib/node_modules/vue-cli/lib/generate.js:66:6)
at /usr/local/lib/node_modules/vue-cli/bin/vue-init:153:5
at /usr/local/lib/node_modules/vue-cli/node_modules/_download-git-repo@0.2.2@download-git-repo/index.js:43:22
at /usr/local/lib/node_modules/vue-cli/node_modules/download/index.js:165:3
at callback (/usr/local/lib/node_modules/vue-cli/node_modules/_each-async@1.1.1@each-async/index.js:38:4)
at onetime (/usr/local/lib/node_modules/vue-cli/node_modules/_onetime@1.1.0@onetime/index.js:22:12)
at /usr/local/lib/node_modules/vue-cli/node_modules/download/index.js:156:5
at ConcatStream. (/usr/local/lib/node_modules/vue-cli/node_modules/_concat-stream@1.6.0@concat-stream/index.js:36:43)
at emitNone (events.js:91:20)
at ConcatStream.emit (events.js:186:7)
at finishMaybe (/usr/local/lib/node_modules/vue-cli/node_modules/_readable-stream@2.3.3@readable-stream/lib/_stream_writable.js:607:14)
at endWritable (/usr/local/lib/node_modules/vue-cli/node_modules/_readable-stream@2.3.3@readable-stream/lib/_stream_writable.js:615:3)
at ConcatStream.Writable.end (/usr/local/lib/node_modules/vue-cli/node_modules/_readable-stream@2.3.3@readable-stream/lib/_stream_writable.js:571:41)
at DuplexWrapper.onend (/usr/local/lib/node_modules/vue-cli/node_modules/_readable-stream@2.3.3@readable-stream/lib/_stream_readable.js:570:10)
at Object.onceWrapper (events.js:291:19)
`

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