jeremyfa / node-exec-sync

IMPORTANT: This repository is no longer maintained.
48 stars 26 forks source link

warn: "Utf8String" type is deprecated, use "CString" instead #7

Closed springuper closed 7 years ago

springuper commented 12 years ago

Whenever i use exec-sync module, '"Utf8String" type is deprecated, use "CString" instead' will print on the screen. please check it.

My OS info is "CentOS release 5.4 (Final)".

vkruoso commented 12 years ago

ffi fix this message in this commit: https://github.com/rbranson/node-ffi/commit/f239ec814ca13bcb61218f74d720880d3150f252

I've tried to update to the last version, but nothing has changed. npm install ffi@1.1.2

I suggest changing the ffi dependency version to >=1.0.1.

jeremyfa commented 12 years ago

Once ffi is updated to its next version npm, I guess the warning should go away. This is not so convenient but at least the library is working for now.

jeremyfa commented 7 years ago

Quoting the repository README:

IMPORTANT: This repository is no longer maintained.

The same feature is now built-in with node v0.12: >https://nodejs.org/api/child_process.html#child_process_child_process_execsync_command_options