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!
As explained here: yarnpkg/yarn#4895 (comment)
Which is:
create
.npmrcwith:edit
package.jsonadding:{ "engines": { "npm": "PLEASE USE YARN INSTEAD OF NPM", "yarn": ">= 1.0.0" }, }possible bonus: write in
enginesthe same yarn version as the one used to callcreate-accurapp.@SgaBenza @ilariaventurini @ivanross @delaudio @pitou what do you think? could be useful on our long-running projects as well!