Yarn: Feature: skip checking engine field

Created on 1 Oct 2017  路  2Comments  路  Source: yarnpkg/yarn

I'm trying to create bower2yarn script that allows one to switch from bower to yarn, but there's one blocker: when installing legacy projects with Yarn, some bower modules list legacy node versions in their engine fields. Yarn has strict checking for these and fails installation, instead of just issuing a warning. Here's an example:

error [email protected]: The engine "node" is incompatible with this module. Expected version "0.8.x".

Is it possible to skip this check, or change error to warning, at least for dependencies?

All 2 comments

Never mind, --ignore-engines seems to help.

it is very stressing ... another package manager .... and either bower either yarm are bad designed.
If i find time in future i will realize mime packager because it is impossible to work so.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MunifTanjim picture MunifTanjim  路  3Comments

victornoel picture victornoel  路  3Comments

sebmck picture sebmck  路  3Comments

ocolot picture ocolot  路  3Comments

danez picture danez  路  3Comments