我正在与远程团队合作开发Ionic 1应用程序,最近我们的版本彼此不喜欢。我想知道我是否也一直致力于Ionic 2项目的事实我的CLI“认为”这些应用程序也是Ionic 2并且那里正在拍摄下面的错误?
离子构建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 ..并没有让它消失..我也确保安装了凉亭。
这与这里有什么关系呢?我已经被困在这里几天了。
UPDATE
我去了一个旧的项目,我试图运行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`?
我的离子信息(最终能够打印出来)
您的系统信息:
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
在@janos建议之后更新3
我跑了npm安装凉亭,它运行并安装了一些模块,但我得到了以下..
```
$ ionic build ios WARN: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)在Object。 (/用户/ abelista /代码/ inov /基石/ inoabelista
```
我运行的是Node 6.0.0,我需要运行Node 4.4.4
在上述条件下无法解决,考虑离子版本,我遇到了同样的问题,因为最终版离子问题。离子版本升级很快,两个月前做了项目,现在离子已从1.7.16升级到2.0.0。如果你想重新运行这个版本,你应该输入cmd'npm install [email protected]',运行完成后,然后执行'ionic serve'即可运行旧版本的项目。我希望能帮助你
运行npm uninstall --save-dev gulp-sass @ 2