yarn error Found incompatible module

今天使用yarn时遇到

$ yarn add pngjs
yarn add v1.21.0
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
error pngjs@6.0.0: The engine "node" is incompatible with this module. Expected version ">=12.13.0". Got "10.15.3"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

 yarn config set ignore-engines true

 

posted @ 2020-12-15 16:17  慕尘  阅读(1532)  评论(0编辑  收藏  举报