Skip to content

NodeJS 6 support #960

Closed
Closed

Description

@jgw96

From @dealloc on April 27, 2016 12:30

Short description of the problem:

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:

  1. install NodeJS 6
  2. 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

Copied from original issue: ionic-team/ionic-framework#6340

Activity

  1. jgw96 commented on Apr 27, 2016

    @jgw96
    ContributorAuthor

    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!

  2. tlancina commented on Apr 27, 2016

    @tlancina
    Contributor

    Thanks for the issue, we'll need to take a look at our dependencies and make sure they are Node 6 compatible.

  3. lizhongit commented on Apr 28, 2016

    @lizhongit

    Same problem

  4. Erichain commented on Apr 28, 2016

    @Erichain

    +1. I also have the same problem.

  5. bo01ean commented on Apr 28, 2016

    @bo01ean

    +1

  6. nunoarruda commented on Apr 28, 2016

    @nunoarruda

    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.

  7. soerjadi commented on Apr 28, 2016

    @soerjadi

    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 :)

  8. dealloc commented on Apr 28, 2016

    @dealloc

    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?

  9. soerjadi commented on Apr 28, 2016

    @soerjadi

    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. :)

  10. anasbousselham commented on Apr 28, 2016

    @anasbousselham

    Same problem!!!

  11. jj-julia commented on Apr 28, 2016

    @jj-julia

    me to - same problem

  12. toxic2302 commented on Apr 29, 2016

    @toxic2302

    Same problem!!!

  13. moosecodes commented on Apr 29, 2016

    @moosecodes

    Same problem here!

  14. minhdtb commented on Apr 30, 2016

    @minhdtb

    I have the same problem

  15. iignatov commented on Apr 30, 2016

    @iignatov

    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.

  16. 15 remaining items

  17. ahmed-abdulmoniem commented on Jul 7, 2016

    @ahmed-abdulmoniem

    I have been able to install ionic on node v6.3.0

    image

  18. gurisko commented on Jul 11, 2016

    @gurisko

    @ahmed-abdulmoniem And were you able to build a working ionic app?

  19. ahmed-abdulmoniem commented on Jul 11, 2016

    @ahmed-abdulmoniem

    @gurisko Yeah I have built my application debug/release and the apk file has been generated.

  20. jthoms1 commented on Jul 11, 2016

    @jthoms1
    Contributor

    @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

  21. ahmed-abdulmoniem commented on Jul 11, 2016

    @ahmed-abdulmoniem

    @gurisko @jthoms1 This is mine:

    image

  22. gurisko commented on Jul 13, 2016

    @gurisko

    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!

  23. ChALkeR commented on Jul 20, 2016

    @ChALkeR

    @dealloc

    I have a couple packages indeed who depend on version 3 (one even depends on version 1.2.3)

    @avatsaev

    vinyl-fs is using the old version of graceful-fs ([email protected])

    Note that 1.2.3 does not cause the runtime warning. Only graceful-fs@2 and graceful-fs@3 are affected.

    Tracking: nodejs/node#5213.

    ionic is currently #4 in my list of affected modules.

  24. ChALkeR commented on Jul 20, 2016

    @ChALkeR

    Other things to note:

    • 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).
  25. ChALkeR commented on Jul 20, 2016

    @ChALkeR

    Also: gulp@3, unzip, [email protected] and [email protected] are currently in the dependencies.

    There might be more, I just mentioned the ones that I spotted.

  26. justinschuldt commented on Sep 27, 2016

    @justinschuldt

    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 
    
  27. m1aw commented on Nov 15, 2016

    @m1aw

    Problem is not yet fixed. graceful-fs is still getting installed with version 1.2.3 on node 6.9.3.

    ┬ [email protected]
    │ ├─┬ [email protected]
    │ │ └─┬ [email protected]
    │ │   ├─┬ [email protected]
    │ │   │ └─┬ [email protected]
    │ │   │   └─┬ [email protected]
    │ │   │     └─┬ [email protected]
    │ │   │       └── [email protected]
    │ │   └── [email protected]
    

    Yet NodeJS 6 is what is documented in: http://ionicframework.com/docs/v2/getting-started/installation/

  28. flute commented on Nov 24, 2016

    @flute

    After update gitbook to latest version, it works well.
    Use gitbook ls and trygitbook update to update gitbook:

    node: 6.2.0
    npm: 3.8.9
    gitbook: 3.2.2
  29. vikash1993 commented on Dec 22, 2016

    @vikash1993

    #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

  30. saymo23 commented on Mar 1, 2017

    @saymo23

    In my case uninstall gulp in global and i can run ionic run android withour problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions