admin管理员组文章数量:1321058
I have deployed a node script in heroku to be run by a scheduler. But when the script runs I see a warning in the logs.
Dec 07 11:01:10 xxx heroku/scheduler.3255 Starting process with mand `node bin/script`
Dec 07 11:01:13 xxx app/scheduler.3255: (node) sys is deprecated. Use util instead.
I have not declared a engine
section in my package.json
.
Is a problem with the node version? How can I avoid this warning?
Thanks!
I have deployed a node script in heroku to be run by a scheduler. But when the script runs I see a warning in the logs.
Dec 07 11:01:10 xxx heroku/scheduler.3255 Starting process with mand `node bin/script`
Dec 07 11:01:13 xxx app/scheduler.3255: (node) sys is deprecated. Use util instead.
I have not declared a engine
section in my package.json
.
Is a problem with the node version? How can I avoid this warning?
Thanks!
Share Improve this question edited Jan 13, 2016 at 15:22 Guy 67.4k101 gold badges265 silver badges331 bronze badges asked Dec 8, 2015 at 16:51 ezainezain 1,4851 gold badge16 silver badges34 bronze badges1 Answer
Reset to default 7This is happening because (obviously) 'sys' has been deprecated and replaced by 'util'.
If you are not using 'sys' directly (search your codebase for something like require('sys')
) then one of the modules that you depend on (or its dependencies) might be.
To find the offending module do an npm install
on your project and then grep for require('sys')
(or with double quotes) to see if you can find the module. Example grep mand:
grep -r "require('sys')" .
If you really want that warning to go away and it's in a dependency or sub-dependency then you have a couple of choices:
- Replace the module that's using
sys
with one that isn't yet provides the same functionality. (Check that there isn't a more recent version of the module that's addressed this issue.) - Submit a Pull Request fixing the issue in the module.
本文标签:
版权声明:本文标题:javascript - Heroku log warning "(node) sys is deprecated. Use util instead" when script runs - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742091233a2420277.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论