首页 > 解决方案 > 当我尝试启动我的项目时,离子服务不起作用

问题描述

当我尝试在我的 ionic 项目中使用 ionic serve 命令时,出现以下错误。我不知道为什么,可能是因为我试图在我的外部 SSD 上启动我的项目???

错误图片

标签: angularionic-framework

解决方案


  1. 删除你的 node_modules 文件夹
  2. 重新安装你的模块npm i
  3. 验证您是否同时安装了 angular 和 ionic

如果没有成功,您可能只想构建一个由 ionic 团队提供的基础项目

ionic start

然后选择提供的开始之一:

> tabs         | A starting project with a simple tabbed interface
  sidemenu     | A starting project with a side menu with navigation in the content area
  blank        | A blank starter project
  list         | A starting project with a list
  my-first-app | An example application that builds a camera with gallery
  conference   | A kitchen-sink application that shows off all Ionic has to offer

这应该有效。


推荐阅读