运行
运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’
NPM install @ babel/compat-data后解决了此错误。
如果执行继续报错
Module build failed (from ./node_modules/sass-loader/di):
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:
at module.exports (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/node-sass/lib)
at Object.<anonymous> (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/node-sass/lib)
at Module._compile (internal/modules/cj)
at Object.Module._extensions..js (internal/modules/cj)
at Module.load (internal/modules/cj)
at Func (internal/modules/cj)
at Module.require (internal/modules/cj)
at require (internal/modules/cj)
at getDefaultSassImplementation (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/sass-loader/di)
at getSassImplementation (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/sass-loader/di)
at Object.loader (/Users/sys/Documents/HBuilderProjects/stone_admin/node_modules/sass-loader/di)
说的node-sass版本问题。使用命令npm i node-sass -D 更新下即可。
1.《cannot find,干货看这篇!项目运行报错Cannot find module '@babel/compat-data…》援引自互联网,旨在传递更多网络信息知识,仅代表作者本人观点,与本网站无关,侵删请联系页脚下方联系方式。
2.《cannot find,干货看这篇!项目运行报错Cannot find module '@babel/compat-data…》仅供读者参考,本网站未对该内容进行证实,对其原创性、真实性、完整性、及时性不作任何保证。
3.文章转载时请保留本站内容来源地址,https://www.cxvn.com/gl/djyxgl/169482.html