ionic 1 应用程序不构建 ios:ionic.project 已重命名为 ionic.config.json, [英] ionic 1 app does not build ios : ionic.project has been renamed to ionic.config.json,

查看:19
本文介绍了ionic 1 应用程序不构建 ios:ionic.project 已重命名为 ionic.config.json,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与一个远程团队一起开发 Ionic 1 应用程序,最近我们的版本彼此不喜欢.我想知道我是否也一直在研究 Ionic 2 项目,因为我的 CLI认为"这些应用程序也是 Ionic 2 并且正在向我射击下面的错误?

I am working on an Ionic 1 app with a remote team and lately our versions have not liked each other. I was wondering if the fact that I have also been working on Ionic 2 projects for whatever reason my CLI "thinks" these apps are also Ionic 2 and there for is shooting me the error below?

离子构建ios

WARN: ionic.project has been renamed to ionic.config.json, please rename it.
(node:9061) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Uh oh! Looks like you're missing a module in your gulpfile:
Cannot find module 'bower'

Do you need to run `npm install`?

我已经运行 npm install .. 并没有让它消失.. 我还确保安装了 bower.

I have ran npm install.. does not make it go away.. I also have make sure to have bower installed.

这与这里有什么关系?我已经被困在这里几天了.

What does this hold up here have to do with? I've been stuck here for a couple days now.

更新

我去了一个旧项目,我试图运行 ionic info 以查看我拥有的版本和系统信息,但我收到相同的错误消息..

I went to an old project that and i tried to run ionic info to see the versions I have and system info but I get THE SAME error message..

我不知道我做了什么才能得到这个......

I have no idea what I've done to get this...

mymac ~/code/92_AAC/newApp on master[!]
$ ionic info
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
Uh oh! Looks like you're missing a module in your gulpfile:
Cannot find module 'gulp'

Do you need to run `npm install`?

更新 2

我从 Node 6 降级到 Node 5.9 在当前项目中,我遇到了原始问题.. 我明白了..

I downgraded from Node 6 to Node 5.9 On the current project I was having the original issues.. I got this..

$ ionic build ios
******************************************************
 Dependency warning - for the CLI to run correctly,      
 it is highly recommended to install/upgrade the following:     

 Install ios-sim to deploy iOS applications. `npm install -g ios-sim` (may require sudo)
 Install ios-deploy to deploy iOS applications to devices. `npm install -g ios-deploy` (may require sudo)

******************************************************
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
(node:11866) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Uh oh! Looks like you're missing a module in your gulpfile:
Cannot find module 'bower'

Do you need to run `npm install`?

我的离子信息(终于可以打印出来了)

my ionic info(finally able to print it out)

您的系统信息:

Cordova CLI: 6.1.1
Gulp version:  CLI version 1.2.1
Gulp local:  
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.6 
ios-sim version: 5.0.3 
OS: Mac OS X El Capitan
Node Version: v5.9.1
Xcode version: Xcode 7.3.1 Build version 7D1014 

更新 3 @janos 建议后

UPDATE 3 after @janos suggestion

我运行 npm install bower,它运行并安装了一些模块,但我得到了以下内容..

I ran npm install bower and it ran and installed some modules BUT I got the following..

  1. 单击此链接可更详细地查看我的命令行的屏幕截图此处为屏幕截图!

```

$ ionic build iosWARN: ionic.project 已重命名为 ionic.config.json,请重命名.(node:12122) fs:不支持重新评估原生模块源.如果您使用的是 graceful-fs 模块,请将其更新到更新的版本.您的 gulpfile 中有错误:错误:ENOENT:没有这样的文件或目录,scandir '/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/vendor'在错误(本机)在 Object.fs.readdirSync (fs.js:945:18)在 Object.getInstalledBinaries (/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:74:13)在foundBinariesList (/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/lib/errors.js:20:15)在foundBinaries (/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/lib/errors.js:15:5)在 Object.module.exports.missingBinary (/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/lib/errors.js:45:5)在对象.(/Users/abelista/code/inov/cornerstone/inoabelista

$ ionic build ios WARN: ionic.project has been renamed to ionic.config.json, please rename it. (node:12122) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. There is an error in your gulpfile: Error: ENOENT: no such file or directory, scandir '/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/vendor' at Error (native) at Object.fs.readdirSync (fs.js:945:18) at Object.getInstalledBinaries (/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:74:13) at foundBinariesList (/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/lib/errors.js:20:15) at foundBinaries (/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/lib/errors.js:15:5) at Object.module.exports.missingBinary (/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/lib/errors.js:45:5) at Object. (/Users/abelista/code/inov/cornerstone/inoabelista

```

  1. 列表项:主要错误(A4CPassenger@1.1.1 - 不知道该怎么称呼它...但这基本上是应用程序的名称?我相信远程团队更改了它...无论出于何种原因我仍然收到旧名称..)

推荐答案

运行 npm uninstall --save-dev gulp-sass@2

Run npm uninstall --save-dev gulp-sass@2

这篇关于ionic 1 应用程序不构建 ios:ionic.project 已重命名为 ionic.config.json,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆