如下所示,新手安裝若依RuoYi-Cloud框架前端vue時會報如下錯誤:
ERROR Failed to compile with 7 errors
This dependency was not found:
- core-js/modules/es.error.cause.js in ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js, ./src/directive/permission/hasRole.js and 5 others
To install it, you can run: npm install --save core-js/modules/es.error.cause.js
如何解決,直接上方法:
1.刪除node_modules目錄
2.安裝報錯的插件 npm install --save core-js
3.yarn 或者 npm i文章來源:http://www.zghlxwxcb.cn/news/detail-518093.html
npm run dev 重新運(yùn)行看效果,方法看似不高明,但親測有效,很能解決問題。。文章來源地址http://www.zghlxwxcb.cn/news/detail-518093.html
到了這里,關(guān)于若依RuoYi-Cloud框架前端vue安裝時報 core-js/modules/es.error.cause.js錯誤怎么解決?的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!