jiangxy/react-antd-admin

npm install 报错

Xiaojinhua opened this issue · 1 comments

xiaojinhuadeMacBook-Pro:react-antd-admin xiaojinhua$ npm install

node-zopfli@2.1.4 install /Users/xiaojinhua/myWork/react-antd-admin/node_modules/node-zopfli
prebuild-install --runtime napi || prebuild-install || node-gyp rebuild

prebuild-install WARN This package does not support N-API version undefined
prebuild-install WARN install No prebuilt binaries found (target=undefined runtime=napi arch=x64 libc= platform=darwin)
prebuild-install WARN install No prebuilt binaries found (target=8.4.0 runtime=node arch=x64 libc= platform=darwin)
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Traceback (most recent call last):
File "/usr/local/homebrew/homebrew-master/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 16, in
sys.exit(gyp.script_main())

报错+1
tracy@Chenxins-MacBook-Pro react-antd-admin % npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: react-antd-admin@1.0.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! dev react@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.0" from react-redux@4.4.0
npm ERR! node_modules/react-redux
npm ERR! dev react-redux@"4.4.0" 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 /Users/dd/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/dd/.npm/_logs/2022-02-05T02_37_32_266Z-debug.log