Skip to content

Vue add doesn't work when using Yarn Workspaces #2674

@Spittal

Description

@Spittal

Version

3.0.4

Node and OS info

Node v10.11.0, Yarn 1.9.4

Steps to reproduce

In an existing project using the package.json field vuePlugins with a Yarn workspace like so...

"vuePlugins": {
    "resolveFrom": "someWorkspace"
  }

Run the command

vue add @vue/typescript

What is expected?

That the vue plugin is installed and the generator is invoked.

What is actually happening?

This error

📦  Installing @vue/cli-plugin-typescript...

yarn add v1.9.4
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
error Running this command will add the dependency to the workspace root rather than the workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).
 ERROR  command failed: yarn add -D @vue/cli-plugin-typescript

It should be noted that I also get similar errors when manually installing the required dependancies for the Vue-CLI plugin but when using a Yarn Workspace the vue invoke command also fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionThis issue is missing a minimal runnable reproduction, provided by the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions