当前位置:   article > 正文

An error occure while resolving packages: Project has invaild dependencies解决办法

an error occurred while resolving packages: project has invalid dependencies
xx

从错误信息来看,网上下载的源码指向了一个绝对路径,作为3天的新手的我, 怎么改我不知道的,但是我具备其它编程基础以及具备逆向思维,直接全局搜索文件不就ok了,

于是我搜索定位

image.png

lock.json我直接干掉,然后修改manifest.json
把绝对路径改成网络路径

  1. {
  2. "dependencies": {
  3. "com.htc.upm.vive-input-utility": "1.14.1",
  4. "com.htc.upm.wave.essence": "4.2.0-r.10",
  5. "com.htc.upm.wave.xrsdk": "4.2.0-r.10",
  6. "com.unity.collab-proxy": "1.5.7",
  7. "com.unity.ide.rider": "2.0.7",
  8. "com.unity.ide.visualstudio": "2.0.12",
  9. "com.unity.ide.vscode": "1.2.3",
  10. "com.unity.render-pipelines.universal": "10.5.1",
  11. "com.unity.robotics.urdf-importer": "https://github.com/Unity-Technologies/URDF-Importer.git?path=/com.unity.robotics.urdf-importer#v0.5.2",
  12. "com.unity.test-framework": "1.1.30",
  13. "com.unity.textmeshpro": "3.0.6",
  14. "com.unity.timeline": "1.4.8",
  15. "com.unity.ugui": "1.0.0",
  16. "com.unity.xr.management": "4.2.0",
  17. "com.unity.modules.ai": "1.0.0",
  18. "com.unity.modules.androidjni": "1.0.0",
  19. "com.unity.modules.animation": "1.0.0",
  20. "com.unity.modules.assetbundle": "1.0.0",
  21. "com.unity.modules.audio": "1.0.0",
  22. "com.unity.modules.cloth": "1.0.0",
  23. "com.unity.modules.director": "1.0.0",
  24. "com.unity.modules.imageconversion": "1.0.0",
  25. "com.unity.modules.imgui": "1.0.0",
  26. "com.unity.modules.jsonserialize": "1.0.0",
  27. "com.unity.modules.particlesystem": "1.0.0",
  28. "com.unity.modules.physics": "1.0.0",
  29. "com.unity.modules.physics2d": "1.0.0",
  30. "com.unity.modules.screencapture": "1.0.0",
  31. "com.unity.modules.terrain": "1.0.0",
  32. "com.unity.modules.terrainphysics": "1.0.0",
  33. "com.unity.modules.tilemap": "1.0.0",
  34. "com.unity.modules.ui": "1.0.0",
  35. "com.unity.modules.uielements": "1.0.0",
  36. "com.unity.modules.umbra": "1.0.0",
  37. "com.unity.modules.unityanalytics": "1.0.0",
  38. "com.unity.modules.unitywebrequest": "1.0.0",
  39. "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
  40. "com.unity.modules.unitywebrequestaudio": "1.0.0",
  41. "com.unity.modules.unitywebrequesttexture": "1.0.0",
  42. "com.unity.modules.unitywebrequestwww": "1.0.0",
  43. "com.unity.modules.vehicles": "1.0.0",
  44. "com.unity.modules.video": "1.0.0",
  45. "com.unity.modules.vr": "1.0.0",
  46. "com.unity.modules.wind": "1.0.0",
  47. "com.unity.modules.xr": "1.0.0"
  48. },
  49. "scopedRegistries": [
  50. {
  51. "name": "VIVE",
  52. "url": "https://npm-registry.vive.com",
  53. "scopes": [
  54. "com.htc.upm"
  55. ]
  56. }
  57. ]
  58. }

重新打开发现错误成功修复,当然网上说直接删掉此行,我认为不妥。。
最后在window-package manager里面查看 验证

image.png
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/92707
推荐阅读
相关标签
  

闽ICP备14008679号