更新时间:2023-11-16 23:35:40
似乎这个问题已经得到解决和修复,但这里有一些可行的解决方案可以解决其他答案和我们自己的研究,以防再次发生这种情况:
It seems the issue has been addressed and fixed already but here are some viable solutions found to other answers and our own research in case this happens again:
1) 在安装和添加 Plotly.js 或任何其他包之前,将 3d-view 添加到 yarn.lock:
1) Add 3d-view to yarn.lock before installing it and adding Plotly.js or any other packages:
"3d-view@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/3d-view/-/3d-view-2.0.0.tgz#831ae942d7508c50801e3e06fafe1e8c574e17be"
integrity sha1-gxrpQtdQjFCAHj4G+v4ejFdOF74=
dependencies:
matrix-camera-controller "^2.1.1"
orbit-camera-controller "^4.0.0"
turntable-camera-controller "^3.0.0"
2) 手动安装添加了注册表的包:
2) Manually install the package with a registry added:
yarn add 3d-view@2.0.0 --registry https://yarn.npmjs.org
感谢用户masseyb
npm i git://github.com/mikolalysenko/3d-view
感谢用户 Diogo Falcão