Skip to content

More detailed "Migrating from npm" guide #297

Open
@donaldpipowitch

Description

@donaldpipowitch

Hi,

I'd like to know for all commands on "Migrating from npm" if and how they differ between npm and yarn. I can read about some of them in the docs. E.g. for add they tell When you run either yarn or yarn add <package>, Yarn will generate a yarn.lock file within the root directory of your package.

But how is yarns publish different to npms? It seems that this isn't just an alias. I initially thought yarn would be just for library consumers to install dependencies, but that library authors should still use npm to publish components. This doesn't seem to be true. So why should I use yarn publish? Is this just convenience to use only one package manager?

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