加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – 错误对不起! ionic serve只能在Ionic项目目录中运

发布时间:2020-12-17 17:44:29 所属栏目:安全 来源:网络整理
导读:我正在使用离子1项目.更新cordova后,我得到“[ERROR]抱歉!离子服务只能在Ionic项目目录中运行”离子1项目中的错误消息.当我尝试通过“离子启动myApp选项卡”创建新的离子项目时,它构建了我的新项目及其离子2.我怎样才能回到离子1并运行我的旧项目? 解决方
我正在使用离子1项目.更新cordova后,我得到“[ERROR]抱歉!离子服务只能在Ionic项目目录中运行”离子1项目中的错误消息.当我尝试通过“离子启动myApp选项卡”创建新的离子项目时,它构建了我的新项目及其离子2.我怎样才能回到离子1并运行我的旧项目?

解决方法

我还有一些问题,当我更新离子/ cordova并创建了我的第一个应用程序与离子3,之后我无法运行我的旧离子1应用程序.在我运行我的离子1应用程序的步骤下面

1.Go to the newly created project (with Ionic 3.*) and open package.json

2.There should be line like “@ionic/cli-plugin-ionic-angular”

3.Copy this line to package.json of your Ionic v1 project(on V2 app can be other plugins starting with cli-plugin-.. as well,you can move these too)

4.Change the ionic-angular to ionic1 like this “@ionic/cli-plugin-ionic1”

5.Run npm install in your v1 project folder

6.Rename the file ionic.project to ionic.config.json

7.Then try ionic serve

希望你的v1应用程序将启动

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读