关于使用npm run dev后报错问题的解决

报错信息:

   Module build failed (from ./node_modules/babel-loader/lib/index.js):

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\64950\Desktop\project\nodejs-currency\admin-web\node_modules\@babel\helper-compilation-targets\package.json

实质上是vue-cli的报错

解决方法:控制台执行

npm install @babel/helper-compilation-targets --save-dev

你可能感兴趣的:(关于使用npm run dev后报错问题的解决)