his dependency was not found: * three/addons/controls/OrbitControls.js in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/three/three.vue?vue&type=script&lang=js& To install it, you can run: npm install --save three/addons/controls/OrbitControls.js
时间: 2023-07-07 13:04:33 浏览: 319
这个错误提示说缺少 OrbitControls.js 这个文件,你可以运行以下命令安装它:
```
npm install --save three
```
如果已经安装了 three,则可以尝试重新安装:
```
npm uninstall three
npm install three
```
如果还是不行,可能是版本问题,你可以尝试安装指定版本的 three:
```
npm install --save three@0.100.0
```
具体版本号可以根据你的项目需要进行调整。
相关问题
This dependency was not found: * @/api/wms/category in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/category/index.vue?vue&type=script&lang=js& To install it, you can run: npm install --save @/api/wms/category This dependency was not found: * @/api/wms/category in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/category/index.vue?vue&type=script&lang=js& To install it, you can run: npm install --save @/api/wms/category
This error message indicates that the dependency "@/api/wms/category" could not be found. It seems that you need to install this dependency in order to resolve the issue.
To install the missing dependency, you can run the following command in your terminal:
```
npm install --save @/api/wms/category
```
This command will install the "@/api/wms/category" package and save it as a dependency in your project's package.json file. Once the installation is complete, you should be able to resolve the dependency and resolve the error.
This dependency was not found: * src/vanta.waves in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/dashboard/index.vue?vue&type=script&lang=js& To install it, you can run: npm install --save src/vanta.waves
这个错误通常是在使用 Vue.js 框架时,缺少了一个名为 `vanta.waves` 的依赖。要解决这个问题,你需要先确认 `vanta.waves` 是否被正确安装并且在正确的路径下。如果你已经确认了 `vanta.waves` 存在并且已经正确安装,那么你可以尝试按照错误提示中所说的运行以下命令来安装缺失的依赖:
```
npm install --save src/vanta.waves
```
这条命令会在你的项目中安装缺失的依赖,并且会将其添加到项目的 `package.json` 文件中的 `dependencies` 中。安装完成后,你可以再次尝试运行你的应用程序,看看是否仍然出现相同的错误。
阅读全文