[英]i am having error trying to use npm install to download a packages for my cloned projects
當我從 Github 克隆文件並嘗試運行npm install
時出現錯誤
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: light-blue-react-template@1.2.5
npm ERR! Found: eslint-plugin-flowtype@3.8.1
npm ERR! node_modules/eslint-plugin-flowtype
npm ERR! dev eslint-plugin-flowtype@"3.8.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-flowtype@"2.x" from eslint-config-react-app@4.0.1
npm ERR! node_modules/eslint-config-react-app
npm ERR! dev eslint-config-react-app@"4.0.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\JUWONCALEB.DESKTOP-CMA289U\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\JUWONCALEB.DESKTOP-CMA289U\AppData\Local\npm-cache\_logs\2021-02-12T12_22_41_858Z-debug.log
使用節點 v15.10.0 時有時會遇到此問題。 嘗試使用 LTS 版本。 (v14.16.10)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.