_From @dealloc on April 27, 2016 12:30_
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:
ionic serveWhich 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: driftyco/ionic#6340_
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!
Thanks for the issue, we'll need to take a look at our dependencies and make sure they are Node 6 compatible.
Same problem
+1. I also have the same problem.
+1
This might be related to the fact that node-sass doesn't yet support Node 6 https://github.com/sass/node-sass/issues/1484
Downgrade Node to v5.11.0 and you should be fine.
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 :
[surya@pc ~]$ npm list -g graceful-fs
/usr/lib
+-- [email protected]
+-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
`-- [email protected]
`-- [email protected]
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 :)
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. :)
Same problem!!!
me to - same problem
Same problem!!!
Same problem here!
I have the same problem
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.
@iignatov I agree. Package maintainers have to have a chance to update their modules to work with node 6. Node 6 is great! But, it is just gonna take a little while for modules to support it. We are currently working on this, and hope to have the ionic cli working with Node 6 soon, but for now the best solution is too probably downgrade to the latest Node 5 release.
As I see it the main failing package is graceful-fs and I have been getting deprecation messages for that package for ages now. Any package maintainer got more than the chance to upgrade their dependencies long ago when they started spamming everyone with deprecation messages when installing their packages
Perhaps someone find it useful - not a solution, but a temporary walk-around for graceful-fs and alike modules: https://gist.github.com/bondden/2d2e07d18d94d1f4dc23b7dcf9b0e350
I don't know if it was mentioned, but I got pointed here. There is another issue with v6:
Run ionicwithout params likely has some fall-through to some loop over console logs. Those logs will be truncated. This is due to a libuv change in node core, that won't be fixed. There are a lot of similar tickets and I assume there will be fixes in yargs and similar.
Ref: https://github.com/yargs/yargs/issues/497, https://github.com/nodejs/node/issues/6456
Possible fix not using process.exit() and respective handlers. https://github.com/yargs/yargs/pull/498
Thanks @eljefedelrodeodeljefe !
@jgw96 (don't know if it's new) concerning graceful-fs it's one of your projects needs a bump for the major version of glob and vinyl-fs. BTW mocha`s HEAD has the same problem :)
βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ¬ [email protected]
βββ¬ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ [email protected]
Hey, yeah we are already aware of the package version issues. We are currently being held back by the fact that some of our dependencies have yet to update to work with node 6. The cli team hopes to have full node 6 support within the next couple of beta cli releases (:
I downgraded to node 5 and it works fine:
brew install node5
$ node --version
v5.11.1
@kienpham2000 I'm aware it runs just fine under NodeJS5 but this issue is related to the support for version 6. Downgrading has already been suggested multiple times
vinyl-fs is using the old version of graceful-fs ([email protected]), which itself depends on [email protected]
Correct me if I'm wrong but their package.json doesn't seem to reference ionic
@nunoarruda, @iignatov Downgrading the node version to v5.11.1 resolved my problem. Thanks a lot for sharing the issue with latest node version 6.
Any news regarding this issue? when we will be able to use node v6?
Same problem!!!
FWIW: samesies.
I have been able to install ionic on node v6.3.0

@ahmed-abdulmoniem And were you able to build a working ionic app?
@gurisko Yeah I have built my application debug/release and the apk file has been generated.
@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
@gurisko @jthoms1 This is mine:

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!
@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: https://github.com/nodejs/node/issues/5213.
ionic is currently #4 in my list of affected modules.
Other things to note:
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).Also: gulp@3, unzip, [email protected] and [email protected] are currently in the dependencies.
unzip is unmaintained for a long time and probably won't be fixed.gulp@4, which is not released yet. Refs: https://github.com/gulpjs/gulp/issues/1604, https://github.com/driftyco/ionic-cli/issues/1183.vinyl-fs has to be updated.npm also has to be updated, note that the latest [email protected] is fine.There might be more, I just mentioned the ones that I spotted.
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
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/
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
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
In my case uninstall gulp in global and i can run ionic run android withour problem.
Most helpful comment
Hey, yeah we are already aware of the package version issues. We are currently being held back by the fact that some of our dependencies have yet to update to work with node 6. The cli team hopes to have full node 6 support within the next couple of beta cli releases (: