meteor 1.4 - (node) sys is deprecated. Use util instead
Asked Answered
P

3

10

Personally, I have a problem when running meteor ...

The app work perfectly but console show me exception

(node) sys is deprecated. Use util instead.

I have no idea of what might be ... need help ....

enter image description here

Postdiluvian answered 12/8, 2016 at 13:50 Comment(1)
Added image into the question. It would be better to include its text instead of an image of a text.Orthopteran
G
2

Probably one or more of your packages is using require('sys') (which has been deprecated in Node 4.0.0), in this case you have to check which one are using it and update them.

If you find that you are using it in your own code, replace require('sys') with require('util')

Grovel answered 14/11, 2016 at 10:30 Comment(0)
W
0

I have same problem.

Code or modules used sys. I find my project code includ "node_modules" as "sys." keyword.

I found it in "officegen" npm module. remove this module, error message go away.

Wilhelmina answered 29/9, 2016 at 0:3 Comment(0)
G
0

One can fix this warning in their personal project. It's a manual process for fixing this issue in an individual project. Go to your node modules folder and find the logger folder inside it. Inside the logger folder, you will find a logger.js file. Open the logger.js file and do as the following code suggests:-

var sys=require('sys'); // import 'sys' to 'util'
var sys=require('util');

means replace the code on LHS via code on RHS

Godparent answered 23/3, 2023 at 6:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.