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的时候报错,求教 #107

Open
semnyqu opened this issue Apr 28, 2021 · 9 comments
Open

npm install的时候报错,求教 #107

semnyqu opened this issue Apr 28, 2021 · 9 comments

Comments

@semnyqu
Copy link

semnyqu commented Apr 28, 2021

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: GSYGithubApp@0.0.1
npm ERR! Found: react-native@0.61.3
npm ERR! node_modules/react-native
npm ERR! react-native@"0.61.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@">=0.57 <0.60" from @react-native-community/netinfo@2.0.10
npm ERR! node_modules/@react-native-community/netinfo
npm ERR! @react-native-community/netinfo@"^2.0.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/semny/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/semny/.npm/_logs/2021-04-28T07_21_03_769Z-debug.log

@CarGuo
Copy link
Owner

CarGuo commented Apr 29, 2021

用 yarn ,配置版本如下图
image

@semnyqu
Copy link
Author

semnyqu commented May 7, 2021

用 yarn ,配置版本如下图
image

hi CarGuo,
非常感谢你的回复,我的操作及环境信息如下:
本地环境如下:
npm版本:npm -v 7.11.1
node版本:node -v v13.13.0

使用yarn来安装对应的第三方库,使用命令如下yarn install --no-lockfile;提示信息如下
image

难道以上问题和环境版本有关吗?

@CarGuo
Copy link
Owner

CarGuo commented May 7, 2021

$ npm -v
6.14.4
$ node -v
v10.13.0

@semnyqu
Copy link
Author

semnyqu commented May 7, 2021

$ npm -v
6.14.4
$ node -v
v10.13.0

指定了安装版本brew link --overwrite --force node@10
node -v v10.24.0
npm -v 6.14.11
但是执行yarn install 还是出现这个错误
image

@semnyqu
Copy link
Author

semnyqu commented May 7, 2021

$ npm -v
6.14.4
$ node -v
v10.13.0

初步感觉还是这个库拉不下来,https://github.com/CarSmallGuo/react-native-version-number.git
其他库都正常,只有这个不行

@CarGuo
Copy link
Owner

CarGuo commented May 7, 2021

这个在 github 上呀~不大可能拉不下来,除非网络访问有问题~

@semnyqu
Copy link
Author

semnyqu commented May 7, 2021

这个在 github 上呀~不大可能拉不下来,除非网络访问有问题~
NPM网站的路径
image
配置文件里的路径
image
git clone 下载
image

有点奇怪,感觉这里的配置有点问题

@CarGuo
Copy link
Owner

CarGuo commented May 7, 2021

这个没问题的

@CarGuo
Copy link
Owner

CarGuo commented May 7, 2021

443错误说明你命令行访问github出现异常

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