vue.js 进行初始化遇到的关于core-js的错误@core-js/modules/es6.array.find-index]

D:\vuejselement\workSpace\zutnlp_platform_show>cnpm install --save core-js/modules/es6.array.find-index
× Install fail! Error: [@core-js/modules/es6.array.find-index] resolved target D:\vuejselement\workSpace\zutnlp_platform_show\core-js\modules\es6.array.find-index error: ENOENT: no such file or directory, lstat 'D:\vuejselement\workSpace\zutnlp_platform_show\core-js'
Error: [@core-js/modules/es6.array.find-index] resolved target D:\vuejselement\workSpace\zutnlp_platform_show\core-js\modules\es6.array.find-index error: ENOENT: no such file or directory, lstat 'D:\vuejselement\workSpace\zutnlp_platform_show\core-js'
    at module.exports (C:\Users\sunxinxin\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\download\local.js:30:11)
    at module.exports.throw (<anonymous>)
    at onRejected (C:\Users\sunxinxin\AppData\Roaming\npm\node_modules\cnpm\node_modules\co\index.js:81:24)
npminstall version: 3.20.2
npminstall args: D:\vuejselement\NodeJs\node.exe C:\Users\sunxinxin\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\sunxinxin\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org --save core-js/modules/es6.array.find-index

core-js版本太高

安装了淘宝镜像就可以

cnpm install core-js@2

猜你喜欢

转载自www.cnblogs.com/czrb/p/10757731.html
今日推荐