我正在与一个远程团队一起开发 Ionic 1 应用程序,最近我们的版本彼此不喜欢。我想知道我是否也一直在从事 Ionic 2 项目,无论出于何种原因,我的 CLI “认为”这些应用程序也是 Ionic 2 并且在那里向我射击以下错误?
ionic 构建 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.. 并没有让它消失.. 我还确保安装了凉亭。
这与这里有什么关系?我已经被困在这里几天了。
更新
我去了一个旧项目,我试图运行
ionic info
查看我拥有的版本和系统信息,但我收到相同的错误消息..我不知道我做了什么来得到这个......
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
我从节点 6 降级到节点 5.9 在当前项目中我遇到了原始问题.. 我得到了这个..
$ 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`?
我的 ionic 信息 (终于可以打印出来了)
您的系统信息:
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 建议之后
我运行 npm install bower 并运行并安装了一些模块但我得到了以下内容..
Screen Shot here!
```
$ ionic 构建 ios
警告:ionic.project 已重命名为 ionic.config.json,请重命名。
(node:12122) fs: 不支持重新评估 native 模块源。如果您使用的是 graceful-fs 模块,请将其更新到更新的版本。
您的 gulpfile 中有错误:
错误:ENOENT:没有这样的文件或目录,scandir '/Users/abelista/code/inov/cornerstone/inov/a4c/passengerApp/trunk/passenger/node_modules/gulp-sass/node_modules/node-sass/vendor'
在错误( native )
在 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)
在对象。 (/用户/abelista/code/inov/cornerstone/inoabelista
```
最佳答案
我正在运行 Node 6.0.0,我需要运行 Node 4.4.4
关于ionic-framework - ionic 1 应用程序不构建 ios : ionic. 项目已重命名为 ionic.config.json,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37078620/