运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’

运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’

执行npm install @babel/compat-data  后这个错误就解决了。

如果执行继续报错

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 更新下即可。

你可能感兴趣的:(运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’)