Skip to content

Force to use yarn over npm #92

@caesarsol

Description

@caesarsol

As explained here: yarnpkg/yarn#4895 (comment)

Which is:

create .npmrc with:

# used to force yarn over npm
# https://github.com/yarnpkg/yarn/issues/4895#issuecomment-545644733
engine-strict = true

edit package.json adding:

{
  "engines": {
    "npm": "PLEASE USE YARN INSTEAD OF NPM",
    "yarn": ">= 1.0.0"
  },
}

possible bonus: write in engines the same yarn version as the one used to call create-accurapp.

@SgaBenza @ilariaventurini @ivanross @delaudio @pitou what do you think? could be useful on our long-running projects as well!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions