Ant-design-pro: 新克隆下来的安装完依赖无法启动

Created on 20 Mar 2019  ·  11Comments  ·  Source: ant-design/ant-design-pro

部分报错如下

(node:6156) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead
Starting the development server...

Theme generated successfully
ERROR Failed to compile with 119 errors 14:46:33

These dependencies were not found:

  • core-js/modules/es6.array.copy-within in ./src/pages/.umi/polyfills.js
  • core-js/modules/es6.array.fill in ./src/pages/.umi/polyfills.js
  • core-js/modules/es6.array.find in ./src/pages/.umi/polyfills.js
  • core-js/modules/es6.array.find-index in ./src/pages/.umi/polyfills.js
  • core-js/modules/es6.array.from in ./src/pages/.umi/polyfills.js
  • core-js/modules/es6.array.iterator in ./src/pages/.umi/polyfills.js

Most helpful comment

怎么解决

cnpm i [email protected] --save 然后重新更新下node_modules 记得把node_modules先删掉 我是这么处理的

All 11 comments

重新更新下 node_modules

同样的问题, 别用cnpm安装,用npm 安装就没事了,你可以试试

我也遇到了同样的问题 npm install 也报错

安装 core-js 版本为2.6.5,删除原来的node_modules,重新更新下node_modules

怎么解决

怎么解决

cnpm i [email protected] --save 然后重新更新下node_modules 记得把node_modules先删掉 我是这么处理的

rm -rf node_modules

cnpm 可以使用 cnpm update

可用

@chenshuai2144 这个东西真坑,我这用着用着起不来了

babel 更新了。一直更新一直爽

现在又有遇到,最终方案是什么呢

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gaoqiang19514 picture gaoqiang19514  ·  3Comments

zhuanglong picture zhuanglong  ·  3Comments

RichardStark picture RichardStark  ·  3Comments

ghost picture ghost  ·  3Comments

yjz1004 picture yjz1004  ·  3Comments