|
/

umi框架 如何引入友盟 使用npm的, 报错 请求的依赖库"umtrack-js"不存在于npm

H杭*****20
发布于 4 年前
115来自浙江省
移动统计 U-App
SDK集成与升级

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: undefined@undefined npm ERR! Found: react@16.14.0 npm ERR! node_modules/react npm ERR! peer react@"^16.8.0 || ^17.0.0" from @ahooksjs/use-request@2.8.15 npm ERR! node_modules/@ahooksjs/use-request npm ERR! @ahooksjs/use-request@"^2.0.0" from @umijs/plugins@4.0.29 npm ERR! node_modules/@umijs/plugins npm ERR! @umijs/plugins@"4.0.29" from @umijs/max@4.0.29 npm ERR! node_modules/@umijs/max npm ERR! @umijs/max@"^4.0.29" from the root project npm ERR! peer react@">=16.8.4" from @ant-design/charts@1.4.2 npm ERR! node_modules/@ant-design/charts npm ERR! @ant-design/charts@"^1.4.2" from the root project npm ERR! 98 more (@ant-design/cssinjs, @ant-design/flowchart, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! @tanstack/react-query@"^4.0.5" from the root project npm ERR! npm ERR! Conflicting peer dependency: react@18.2.0 npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! C:\Users\YC06\AppData\Local\npm-cache\_logs\2023-04-12T01_56_44_377Z-eresolve-report.txt npm ERR! A complete log of this run can be found in: C:\Users\YC06\AppData\Local\npm-cache\_logs\2023-04-12T01_56_44_377Z-debug-0.log PS D:\YC\anxiadatang-short> npm install umtrack-js --force npm WARN using --force Recommended protections disabled. npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/umtrack-js - Not found npm ERR! 404 npm ERR! 404 'umtrack-js@*' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: C:\Users\YC06\AppData\Local\npm-cache\_logs\2023-04-12T01_59_59_477Z-debug-0.log

1个回答
 
4 年前
来自浙江省

你好,这个是前端网站项目,需要使用U-Mini H5 SDK,H5 SDK没有npm包,只有cdn方式。

Loading ...
登录社区,分享你的经验