之前提示core-js,依赖包冲突我安装百度下载
yarn add core-js
node:internal/modules/cjs/loader:361
throw err;
^
Error: Cannot find module 'D:\html\01_Promise\xxxxxxx\node_modules\yallist\yallist.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:353:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27) at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (D:\html\01_Promise\xxxxxxx\node_modules\lru-cache\index.js:4:17)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
code: 'MODULE_NOT_FOUND',
path: 'D:\\html\\01_Promise\\xxxxxxx\\node_modules\\yallist\\package.json',
requestPath: 'yallist'
}
然后就这样了不知道怎么解决
重新安装core-js 3或者2版本,安装2版本