我正在使用离子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应用程序将启动