运行报错Cannot|运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’
运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’
执行npm install @babel/compat-data后这个错误就解决了。
如果执行继续报错
【运行报错Cannot|运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’】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. (/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 更新下即可。
推荐阅读
- 接口|axios接口报错-参数类型错误解决
- cannot|cannot be read or is not a valid ZIP file
- 打开Anaconda|打开Anaconda Navigator 时报错 error 5 拒绝访问
- 故障分析 | MongoDB 5.0 报错 Illegal instruction 解决
- Python程序运行方式
- 被mybatis-generator-gui-0.6.1报错坑到的那些事(二)
- weex|weex run ios 报错 /bin/sh: pod: command not found 解决方案
- Flink总结-运行命令参数分析
- Android免Root|Android免Root 修改程序运行时内存指令逻辑(Hook系统函数)
- iOS|iOS -Cannot synthesize weak property because the current deployment target does n