[英]Getting error while installing react-stripe-js in my react Project
[英]getting error while installing the yarn in react js project
$ yarn install
yarn install v1.19.1
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 cau
sed by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] Validating package.json...
error app@0.3.0: The engine "node" is incompatible with this module. Expected version ">=10.17.0". Got "10.15.2"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
在 react js 項目中安裝紗線時出現錯誤
error app@0.3.0: The engine "node" is incompatible with this module. Expected version ">=10.17.0". Got "10.15.2"
error Found incompatible module.
刪除package-lock.json
並運行yarn install --ignore-engines
在團隊中工作時,有時另一個開發人員會安裝一個避免這種情況發生的好方法是使用package-locks-checks 。
如果您運行npx package-locks-checks
它將檢查這種不一致並避免您在生產環境中遇到問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.