運(yùn)行報(bào)錯(cuò)Cannot find module '@babel/compat-data/corejs3-shipped-proposals’

運(yùn)行報(bào)錯(cuò)Cannot find module '@babel/compat-data/corejs3-shipped-proposals’

執(zhí)行npm install?@babel/compat-data ?后這個(gè)錯(cuò)誤就解決了。

如果執(zhí)行繼續(xù)報(bào)錯(cuò)

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):

Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (83)

For more information on which environments are supported please see:

https://github.com/sass/node-sass/releases/tag/v4.13.1

????at module.exports (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/node-sass/lib/binding.js:13:13)

????at Object.<anonymous> (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/node-sass/lib/index.js:14:35)

????at Module._compile (internal/modules/cjs/loader.js:1185:30)

????at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)

????at Module.load (internal/modules/cjs/loader.js:1034:32)

????at Function.Module._load (internal/modules/cjs/loader.js:923:14)

????at Module.require (internal/modules/cjs/loader.js:1074:19)

????at require (internal/modules/cjs/helpers.js:72:18)

????at getDefaultSassImplementation (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/sass-loader/dist/getDefaultSassImplementation.js:24:10)

????at getSassImplementation (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/sass-loader/dist/getSassImplementation.js:19:72)

????at Object.loader (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/sass-loader/dist/index.js:40:61)

說的node-sass版本問題。使用命令npm i node-sass -D 更新下即可。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容