You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ionic currently uses a deprecated version of graceful-fs which generates an enormous amount of stack traces when serving, or any other action for that matter
Steps to reproduce:
install NodeJS 6
run ionic serve
Which Ionic Version? 1.x or 2.x
Ionic 2.0.0-beta.25
Run ionic info from terminal/cmd prompt: (paste output below)
(node:13866) 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.
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.
==== JS stack trace =========================================
<truncated huge stacktrace>
Your system information:
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS: Distributor ID: Arch Description: Arch Linux
Node Version: v6.0.0
Reacted by rarspace01, Aleksander Nowodzinski, Vasco Fernandes, Maik Hummel, Boris Lemke, Mauricio Sánchez, Ash Deng, Leon Yu, Ignat Ignatov, Vamsi Atluri and 20 more
Hey! Thanks for opening an issue with us! Since this issue is more related to the CLI than the framework I will be moving this issue over to that repo. Thanks!
try check your graceful-fs version with npm -g list graceful-fs. The result will list package graceful-fs and all package that depends on graceful-fs.
example :
I have a couple packages indeed who depend on version 3 (one even depends on version 1.2.3) but I don't think I can update the dependencies of a specific package?
If you won't to update it, try search modules/package on folder node_modules in your apps that depends on graceful-fs. In my case it because modules less-middleware use version 1.0.x, when i see package.json on modules less-middleware is depends on package [email protected] and [email protected] depends on [email protected]. So i update the less-middleware to the last version and it works. :)
@gurisko Could you let me know if you are still experiencing issues. Could you also paste the results of running ionic info within your application directory? Thanks
Sorry for the late answer - it took me some time to debug the problem properly.
I found out that my problem was not the one reported. Thank you for your kind help, though!
Node.js 5.x is not supported anymore, use either 4.x LTS or 6.x Current (soon to be LTS).
In Node.js 6.x, graceful-fs@2 and graceful-fs@3 support is not actually broken, this is just a warning. It would be turned into a throw in a future version of Node.js, probably in Node.js 7.0 (which will be released this autumn).
Thought I had this issue but it turned out to be something else. I am able to to use the cli as expected with node 6.6.0
In case it helps someone else, here is what I'm running:
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11-201609011853
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v6.6.0
Xcode version: Xcode 7.3.1 Build version 7D1014
#ionic info then info shows but i am unable to make android app. plz help me ?
Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 3.13
Node Version: v7.0.0
Xcode version: Not installed
Activity
jgw96 commentedon Apr 27, 2016
Hey! Thanks for opening an issue with us! Since this issue is more related to the CLI than the framework I will be moving this issue over to that repo. Thanks!
tlancina commentedon Apr 27, 2016
Thanks for the issue, we'll need to take a look at our dependencies and make sure they are Node 6 compatible.
lizhongit commentedon Apr 28, 2016
Same problem
Erichain commentedon Apr 28, 2016
+1. I also have the same problem.
bo01ean commentedon Apr 28, 2016
+1
nunoarruda commentedon Apr 28, 2016
This might be related to the fact that node-sass doesn't yet support Node 6 sass/node-sass#1484
Downgrade Node to v5.11.0 and you should be fine.
soerjadi commentedon Apr 28, 2016
try check your graceful-fs version with
npm -g list graceful-fs. The result will list package graceful-fs and all package that depends on graceful-fs.example :
found package that depends on old version of graceful-fs. Update it and start your apps again.
It works for me. hopefully it can help :)
dealloc commentedon Apr 28, 2016
I have a couple packages indeed who depend on version 3 (one even depends on version 1.2.3) but I don't think I can update the dependencies of a specific package?
soerjadi commentedon Apr 28, 2016
If you won't to update it, try search modules/package on folder
node_modulesin your apps that depends ongraceful-fs. In my case it because modulesless-middlewareuse version1.0.x, when i see package.json on modules less-middleware is depends on package[email protected]and[email protected]depends on[email protected]. So i update theless-middlewareto the last version and it works. :)anasbousselham commentedon Apr 28, 2016
Same problem!!!
jj-julia commentedon Apr 28, 2016
me to - same problem
toxic2302 commentedon Apr 29, 2016
Same problem!!!
moosecodes commentedon Apr 29, 2016
Same problem here!
minhdtb commentedon Apr 30, 2016
I have the same problem
iignatov commentedon Apr 30, 2016
I would suggest to everyone using Node v6 to downgrade to the latest Node v5 release. For more details read the following topic: DON’T rush to upgrade to Node v6. There are 89!!! breaking changes in Node v6 and I guess that it will take some time until all packages catch up.
15 remaining items
ahmed-abdulmoniem commentedon Jul 7, 2016
I have been able to install ionic on node v6.3.0
gurisko commentedon Jul 11, 2016
@ahmed-abdulmoniem And were you able to build a working ionic app?
ahmed-abdulmoniem commentedon Jul 11, 2016
@gurisko Yeah I have built my application debug/release and the apk file has been generated.
jthoms1 commentedon Jul 11, 2016
@gurisko Could you let me know if you are still experiencing issues. Could you also paste the results of running
ionic infowithin your application directory? Thanksahmed-abdulmoniem commentedon Jul 11, 2016
@gurisko @jthoms1 This is mine:
gurisko commentedon Jul 13, 2016
Sorry for the late answer - it took me some time to debug the problem properly.
I found out that my problem was not the one reported. Thank you for your kind help, though!
ChALkeR commentedon Jul 20, 2016
@dealloc
@avatsaev
Note that 1.2.3 does not cause the runtime warning. Only
graceful-fs@2andgraceful-fs@3are affected.Tracking: nodejs/node#5213.
ionicis currently#4in my list of affected modules.ChALkeR commentedon Jul 20, 2016
Other things to note:
graceful-fs@2andgraceful-fs@3support is not actually broken, this is just a warning. It would be turned into a throw in a future version of Node.js, probably in Node.js 7.0 (which will be released this autumn).ChALkeR commentedon Jul 20, 2016
Also:
gulp@3,unzip,[email protected]and[email protected]are currently in the dependencies.unzipis unmaintained for a long time and probably won't be fixed.gulp@4, which is not released yet. Refs: [epic] vinyl-fs version 3.0.0 gulpjs/gulp#1604, use gulp#4 #1183.vinyl-fshas to be updated.npmalso has to be updated, note that the latest[email protected]is fine.There might be more, I just mentioned the ones that I spotted.
justinschuldt commentedon Sep 27, 2016
Thought I had this issue but it turned out to be something else. I am able to to use the cli as expected with node 6.6.0
In case it helps someone else, here is what I'm running:
m1aw commentedon Nov 15, 2016
Problem is not yet fixed. graceful-fs is still getting installed with version 1.2.3 on node 6.9.3.
Yet NodeJS 6 is what is documented in: http://ionicframework.com/docs/v2/getting-started/installation/
flute commentedon Nov 24, 2016
After update gitbook to latest version, it works well.
Use
gitbook lsand trygitbook updateto update gitbook:vikash1993 commentedon Dec 22, 2016
#ionic info then info shows but i am unable to make android app. plz help me ?
Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 3.13
Node Version: v7.0.0
Xcode version: Not installed
saymo23 commentedon Mar 1, 2017
In my case uninstall gulp in global and i can run ionic run android withour problem.