当前位置:网站首页>记一次开发 pgadmin 时执行 Building the Web Assets 遇到的依赖安装问题
记一次开发 pgadmin 时执行 Building the Web Assets 遇到的依赖安装问题
2022-06-26 07:36:00 【dangfulin】
环境:
- centos 7
问题描述:
项目的 package.json 的 dependencies 中有这样一个依赖:
"react-data-grid": "git+https://github.com/adityatoshniwal/react-data-grid.git/#1dc310dfaf5afea359404e867b7cf54953f47d1e",
按照 README.md 中 Building the Web Assets 在执行 make install-node 的时候报错如下:
(venv) [[email protected] pgadmin4]$ make install-node
cd web && yarn install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/adityatoshniwal/react-data-grid.git/
Directory: /home/dangfulin/project/pgadmin4/web
Output:
fatal: 无法访问 'https://github.com/adityatoshniwal/react-data-grid.git/':Encountered end of file
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
make: *** [install-node] 错误 128
解决过程:
一,尝试从网络角度解决
1,查看是否能 ping 通 github
$ ping github.com
PING github.com (20.205.243.166) 56(84) bytes of data.
^C
--- github.com ping statistics ---
20 packets transmitted, 0 received, 100% packet loss, time 19001ms
- 100% 丢包,完全不通,但 ping baidu.com 是没有问题的。
2,查询 github IP
访问 IPAddress.com 查询到 github 最新 IP 为 140.82.114.3
ping 一下,能通:
$ ping 140.82.114.3
PING 140.82.114.3 (140.82.114.3) 56(84) bytes of data.
64 bytes from 140.82.114.3: icmp_seq=1 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=2 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=3 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=4 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=5 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=6 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=7 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=8 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=9 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=10 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=11 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=12 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=13 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=14 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=15 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=16 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=17 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=18 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=19 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=20 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=21 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=22 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=23 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=24 ttl=44 time=281 ms
64 bytes from 140.82.114.3: icmp_seq=25 ttl=44 time=281 ms
^C
--- 140.82.114.3 ping statistics ---
25 packets transmitted, 25 received, 0% packet loss, time 24008ms
rtt min/avg/max/mdev = 281.373/281.514/281.787/0.100 ms
3,修改 hosts 文件
打开 /etc/hosts 文件添加地址映射:
140.82.114.3 github.com
4,刷新 DNS
$ yum install -y nscd
$ systemctl restart nscd
5,重启网络
$ systemctl restart network
6,再次 ping github,就能通了
$ ping github.com
PING github.com (140.82.114.3) 56(84) bytes of data.
64 bytes from github.com (140.82.114.3): icmp_seq=1 ttl=44 time=281 ms
64 bytes from github.com (140.82.114.3): icmp_seq=2 ttl=44 time=281 ms
64 bytes from github.com (140.82.114.3): icmp_seq=3 ttl=44 time=281 ms
64 bytes from github.com (140.82.114.3): icmp_seq=4 ttl=44 time=281 ms
64 bytes from github.com (140.82.114.3): icmp_seq=5 ttl=44 time=281 ms
64 bytes from github.com (140.82.114.3): icmp_seq=6 ttl=44 time=281 ms
64 bytes from github.com (140.82.114.3): icmp_seq=7 ttl=44 time=281 ms
64 bytes from github.com (140.82.114.3): icmp_seq=8 ttl=44 time=281 ms
^C
--- github.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7009ms
rtt min/avg/max/mdev = 281.438/281.574/281.797/0.547 ms
但实际上这解决不了问题
二,直接 yarn 安装指定的依赖
还是不行:
(venv) [[email protected] pgadmin4]$ yarn install https://github.com/adityatoshniwal/react-data-grid.git/#1dc310dfaf5afea359404e867b7cf54953f47d1e
yarn install v1.22.19
error `install` has been replaced with `add` to add new dependencies. Run "yarn add https://github.com/adityatoshniwal/react-data-grid.git/#1dc310dfaf5afea359404e867b7cf54953f47d1e" instead.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
(venv) [[email protected] web]$ yarn add https://github.com/adityatoshniwal/react-data-grid.git/#1dc310dfaf5afea359404e867b7cf54953f47d1e
yarn add v1.22.19
[1/4] Resolving packages...
⠂ https://github.com/adityatoshniwal/react-data-grid.git/#1dc310dfaf5afea359404e867b7cf54953f47d1e
^C
3,用 yarn install 替换 make install-node
根据文档 README.md 的说法,我直接进入 web 目录下执行 yarn install,能成功:
(venv) [[email protected] pgadmin4]$ cd web && yarn install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @material-ui/[email protected]" has incorrect peer dependency "[email protected]^16.8.0".
warning " > @material-ui/[email protected]" has incorrect peer dependency "[email protected]^16.8.0".
warning "@projectstorm/react-diagrams > @projectstorm/[email protected]" has incorrect peer dependency "@emotion/[email protected]^11.*".
warning " > [email protected]" has unmet peer dependency "[email protected]^1.0.4".
warning " > [email protected]" has incorrect peer dependency "[email protected]^16.0.0".
warning " > [email protected]" has incorrect peer dependency "[email protected]^16.0.0".
warning " > [email protected]" has incorrect peer dependency "[email protected]^16.0.0".
warning " > [email protected]" has incorrect peer dependency "[email protected]^16.0.0".
warning " > [email protected]" has unmet peer dependency "[email protected]~0.5.1".
warning " > [email protected]" has unmet peer dependency "[email protected]>= 16.8.0".
warning " > [email protected]" has incorrect peer dependency "[email protected]".
warning " > [email protected]" has incorrect peer dependency "[email protected]^3.0.0 || ^4.0.0".
warning "@wojtekmaj/enzyme-adapter-react-17 > [email protected]" has incorrect peer dependency "[email protected] || 0.14.x || ^15.0.0-0 || ^16.0.0-0".
warning "@wojtekmaj/enzyme-adapter-react-17 > enzyme-adapter-utils > [email protected]" has incorrect peer dependency "[email protected]^0.14 || ^15.0.0 || ^16.0.0-alpha".
warning " > [email protected]" has incorrect peer dependency "[email protected]^2.0.0 || ^3.0.0 || ^4.0.0".
warning " > [email protected]" has unmet peer dependency "[email protected]>=3 <5".
warning " > [email protected]" has unmet peer dependency "[email protected]^2.1.0".
warning " > [email protected]" has incorrect peer dependency "[email protected]^1.0.0".
[4/4] Building fresh packages...
Done in 71.87s.
(venv) [[email protected] pgadmin4]$ cd .. && make install-node
cd web && yarn install
yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.41s.
已经成了。
然后执行 make bundle 就没有问题了:
(venv) [[email protected] pgadmin4]$ make bundle
cd web && yarn run bundle
yarn run v1.22.19
$ cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 yarn run bundle:dev
$ yarn run linter && yarn run webpacker
$ yarn eslint --no-eslintrc -c .eslintrc.js --ext .js --ext .jsx .
$ /home/dangfulin/project/pgadmin4/web/node_modules/.bin/eslint --no-eslintrc -c .eslintrc.js --ext .js --ext .jsx .
$ yarn run webpack --config webpack.config.js --progress
$ /home/dangfulin/project/pgadmin4/web/node_modules/.bin/webpack --config webpack.config.js --progress
......
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
webpack 5.61.0 compiled with 3 warnings in 26894 ms
Done in 96.62s.
边栏推荐
- Cloud native integration data warehouse heavy release
- Item2 installation configuration and environment failure solution
- MySQL'replace into'has a self incrementing ID of the pit. There is a problem with the backup opportunity
- 一文分析EventBus-事件总线的使用方法和实现原理
- Mxnet implementation of network in Nin network
- Class class of box selection four to and polygon box selection based on leaflet encapsulation
- How MySQL implements the RC transaction isolation level
- 十大证券公司哪个佣金手续费最低,最安全可靠?
- Solution to the permission problem when NPM install -g serve reports an error
- The first multi platform webcast of 2021ccf award ceremony pays tribute to the winners! CCF outstanding engineer
猜你喜欢

Ppbpi-h-cr, ppbpimn Cr, ppbpi Fe Cr alkynyl crosslinked porphyrin based polyimide material Qiyue porphyrin reagent

快速找到优质对象的5种渠道,赶紧收藏少走弯路

B站增量数据湖探索与实践
![Jemter stress test - visualization tool support - [installation]](/img/e9/9acda4e37c98cc21df9499684205c6.png)
Jemter stress test - visualization tool support - [installation]

This article will take you to learn in detail what is FTTH
![[North Asia data recovery] a server data recovery method in which the partitions in the RAID5 array are formatted due to the misoperation of the NTFS file system](/img/4d/01310b489ca6a599a125e849ae4856.jpg)
[North Asia data recovery] a server data recovery method in which the partitions in the RAID5 array are formatted due to the misoperation of the NTFS file system

You can command Siri without making a sound! The Chinese team of Cornell University developed the silent language recognition necklace. Chinese and English are OK

13. Mismatch simulation of power synthesis for ads usage recording
![Meso tetra (4-bromophenyl) porphyrin (tbpp); 5,10,15,20-tetra (4-methoxy-3-sulfonylphenyl) porphyrin [t (4-mop) ps4] supplied by Qiyue](/img/83/ddbf296ac83f006f31cfd0bbbabe5e.jpg)
Meso tetra (4-bromophenyl) porphyrin (tbpp); 5,10,15,20-tetra (4-methoxy-3-sulfonylphenyl) porphyrin [t (4-mop) ps4] supplied by Qiyue
![[recommend 10 easy idea plug-ins with less tedious and repetitive code]](/img/74/69ca02e3d83404f7b0df07c308a59d.png)
[recommend 10 easy idea plug-ins with less tedious and repetitive code]
随机推荐
3,3 '- di (3,4-dicarboxyphenoxy) -4,4' - diphenylethynylbiphenyldianhydride (bpebpda) / porphyrin 2dcofs (H2P COF, ZNP COF and cup COF) supplied by Qiyue
The performance of iron and steel enterprises was expected to be good in January this year. Since February, the prices of products of iron and steel enterprises have increased significantly. A mighty
es 中 mapping 简介
Jemter 压力测试 -可视化工具支持-【安装篇】
十大证券公司哪个佣金手续费最低,最安全可靠?
Oracle creates stored procedures with return values and executes SQL calls
Jemter 壓力測試 -基礎請求-【教學篇】
Kalman filter_ Recursive Processing
执行npm install -g serve时报错权限权限问题解决方案
Important reference indicators for data center disaster recovery: RTO and RPO
Web technology sharing | webrtc recording video stream
Liquid crystal texture diagram of purple solid mm-tpp-10c methacrylic acid decanoxy tetraphenyl porphyrin and mm-tpp-12c methacrylic acid dodecanoxy tetraphenyl porphyrin - Qi Yue display
Error: the specified LINQ expression contains a reference to a query associated with a different context
Liujinhai, chief architect of zhongang Mining: according to the analysis of fluorite supply and demand, it is estimated that the fluorine coating market has great potential
[SystemVerilog basics] post_ Randomize function record
What is the difference between bone conduction earphones and ordinary earphones? Advantages of bone conduction earphones
C implementation adds a progress bar display effect to the specified column of the GridView table in devaxpress - code implementation method
Exit of shell internal value command
Quickly find five channels for high-quality objects, quickly collect and avoid detours
基于sanic的服务使用celery完成动态修改定时任务