我的离子文件夹正在工作,但没有做任何事情,它无法使用命令ionic serve运行。它要求更改ionic.project或运行npm bower install。我选择安装bower,它显示“WARN:ionic.project已重命名为ionic.config.json,请重命名它。”。重命名并运行离子服务,但应用程序不会出现。
我重命名ionic.project的方法是按F2并改为“ionic.config.json”
D:\app_abc\abc\.git\cha>ionic service
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
You must have bower installed to continue.
Type `npm install -g bower` (CLI v2.0.0-beta.25)
Your system information:
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS:
Node Version: v5.11.1
D:\abc\abc\.git\cha>npm install -g bower
C:\Users\jane\AppData\Roaming\npm\bower -> C:\Users\jane\AppData\Roaming\npm\node_modules\bower\bin\bower
C:\Users\jane\AppData\Roaming\npm
`-- bower@1.8.0
D:\abc\abc\.git\cha>ionic service
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
D:\abc\abc\.git\cha>ionic service
D:\abc\abc\.git\cha>ionic service
Couldn't find ionic.config.json file. Are you in an Ionic project?
答案 0 :(得分:-2)
你不在离子项目中。所以这就是错误。
示例:您的项目名称是ioninProject
然后,路径应该是这样的
D:\ abc \ abc.git \ cha \ ionicProject>离子服务