[ERR_PACKAGE_PATH_NOT_EXPORTED]: No ‘exports‘ #相关问题解决方案

这两天在用springboot+vue进行一个系统整合时,后台程序没问题,前端用HBuilder-X导入工程功成后,执行运行--运行到终端--npm run serve时报错“package路径没有导出”,具体地是vuex这个包的问题。

经过多次查找,发现可以在该工程的根目录下(含有package.json文件)运行npm update,如果还是不行就执行npm audit fix --force来解决版本混乱问题。

Run the npm update command to solve the "Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No 'exports'" and then run npm audit fix --force if necessary.

The npm update command will update the installed modules that have fuzzy versioning.

Open your terminal in your project's root directory (where your package.json file is) and run the following commands.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值