离子1应用程序不构建IOS:项目已重命名为ionic.config.json,

w8rqjzmb  于 2022-12-08  发布在  Ionic
关注(0)|答案(4)|浏览(136)

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?
ionic build 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`?

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.

UPDATE

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`?

UPDATE 2

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)

Your system information:

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

UPDATE 3 after @janos suggestion

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

  1. click this link to see a screen shot of my command line in more detail Screen Shot here!
$ 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. List item: The main error (A4CPassenger@1.1.1 - not sure what to call this.. but this was basically the name of the app? I believe the remote team changed it.. for whatever reason I am still getting the old name..)
wsewodh2

wsewodh21#

我运行的是节点6.0.0,需要运行节点4.4.4

5vf7fwbs

5vf7fwbs2#

根据以上条件无法解决的问题,考虑离子版,我遇到了同样的问题,因为离子版的最终问题。离子版升级很快,两个月前做的项目,现在离子版已经从1.7.16升级到2.0.0了。如果想重新运行这个版本,应该输入cmd 'npm install ionic@1.7.16',运行完成后,那么实现“ionic serve”就可以运行一个老版本的项目了。希望对你有所帮助

e4eetjau

e4eetjau3#

我也有同样的情况。
我已经从npm更新了ionic(因为它说它已经过时了),我没有意识到我也必须更新npm。所以我必须更新npm e删除并重新安装ionic。

# Update npm (downloaded from nodejs.org +6)

sudo npm remove ionic
sudo npm install -g ionic
xkrw2x1b

xkrw2x1b4#

运行npm卸载--save-dev gulp-sass@2

相关问题