ERROR Error: Cannot find module ‘vue-loader-v16/package.json‘

created at 09-27-2021 views: 7

error

ERROR  Error: Cannot find module 'vue-loader-v16/package.json'
Error: Cannot find module 'vue-loader-v16/package.json'
    at Function.Module._resolveFilename (module.js:555:15)
    at Function.Module._load (module.js:482:25)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at api.chainWebpack.webpackConfig (D:\实训三资料\图表\dashboard\node_modules\_@vue_cli-service@4.5.13@@vue\cli-service\lib\config\base.js:114:23) 
    at webpackChainFns.forEach.fn (D:\实训三资料\图表\dashboard\node_modules\_@vue_cli-service@4.5.13@@vue\cli-service\lib\Service.js:236:40)
    at Array.forEach (<anonymous>)
    at Service.resolveChainableWebpackConfig (D:\实训三资料\图表\dashboard\node_modules\_@vue_cli-service@4.5.13@@vue\cli-service\lib\Service.js:236:26)
    at Service.resolveWebpackConfig (D:\实训三资料\图表\dashboard\node_modules\_@vue_cli-service@4.5.13@@vue\cli-service\lib\Service.js:240:48)
    at PluginAPI.resolveWebpackConfig (D:\实训三资料\图表\dashboard\node_modules\_@vue_cli-service@4.5.13@@vue\cli-service\lib\PluginAPI.js:132:25)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dashboard@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dashboard@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.      

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2021-09-22T07_50_43_187Z-debug.log

solution:

Execute the following instructions to solve

cnpm i vue-loader-v16
created at:09-27-2021
edited at: 09-27-2021: