Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install 报错 #79

Open
Xiaojinhua opened this issue Aug 17, 2021 · 1 comment
Open

npm install 报错 #79

Xiaojinhua opened this issue Aug 17, 2021 · 1 comment

Comments

@Xiaojinhua
Copy link

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

[email protected] 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())

@irishcx
Copy link

irishcx commented Feb 5, 2022

报错+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: [email protected]
npm ERR! Found: [email protected]
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 [email protected]
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants