ionic5 在git上下载别人的项目下来后跑不起来,

1.npm install 

2,npm serve 

然后报Failed to load index.html

在src目录下查找到了index.html start-url也是指向的index.html,查找网上解决办法,说是缺少www文件目录,

使用ionic build 生成www目录,

然后ionic serve 仍然报错:

ionic报错-Failed to load index.html

提示的是@angular相关报错

使用npm install ionic-angular 

npm install ionic angular

npm install @angular

安装angular相关

再次运行,正常了

相关文章:

  • 2022-12-23
  • 2021-05-07
  • 2021-10-06
  • 2021-11-29
  • 2022-01-02
  • 2021-05-30
  • 2021-09-16
  • 2022-12-23
猜你喜欢
  • 2021-06-07
  • 2022-12-23
  • 2021-09-15
  • 2021-09-09
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案