Skip to content

npm warning, child_process: options.customFds option is deprecated #351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wooldridge opened this issue Jan 30, 2017 · 4 comments
Closed

Comments

@wooldridge
Copy link
Contributor

From @MayankBhatnagar89 on 2017-01-30:

On 8.0 Mac platform we are facing an issue where “npm” is throwing below mentioned warning :


npm --version
(node:17095) 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.
1.4.28


All tests are passing but it’s just appending this warning in the output . as mentioned below :


osx-intel64-80-build:qa builder$ mocha -R xunit node-client-api/test-complete/nodejs-config-query.js
(node:17374) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
<testsuite name="Mocha Tests" tests="10" failures="0" errors="0" skipped="0" timestamp="Mon, 30 Jan 2017 12:48:39 GMT" time="6.497">
<testcase classname="Config query test" name="should write the custom query" time="1"/>
<testcase classname="Config query test" name="should read the custom query" time="1.013"/>
<testcase classname="Config query test" name="should list the custom query" time="0.007"/>
<testcase classname="Config query test" name="should remove the custom query" time="0.005"/>
<testcase classname="Config query test" name="should list 0 custom query" time="1.191"/>
<testcase classname="Config query test" name="should write the custom query for test" time="0.097"/>
<testcase classname="Config query test" name="should write document for test" time="1.023"/>
<testcase classname="Config query test" name="should use custom query in a query" time="0.511"/>
<testcase classname="Config query test" name="should remove the custom query after the query test" time="0.427"/>
<testcase classname="Config query test" name="should remove the document" time="1.217"/>
</testsuite>
osx-intel64-80-build:qa builder$

When checked online , below mentioned are the two solutions I found.
sintaxi/harp#409
sequelize/cli#291

@wooldridge wooldridge self-assigned this Jan 30, 2017
@wooldridge wooldridge added this to the 9.0-1 milestone Jan 30, 2017
@wooldridge
Copy link
Contributor Author

I'm seeing the following dependencies (or subdependencies) in the node-client-api having graceful-fs as a dependency:

globule          "graceful-fs": "~1.2.0"
gulp             "graceful-fs": "^3.0.0"
klaw             "graceful-fs": "^4.1.9"
load-json-file   "graceful-fs": "^4.1.2"
path-type        "graceful-fs": "^4.1.2"
vinyl-fs         "graceful-fs": "^3.0.0"

@wooldridge wooldridge removed this from the 9.0-1 milestone Feb 1, 2017
@wooldridge
Copy link
Contributor Author

From @MayankBhatnagar89 2017-01-31:

Also I would like to share that the npm version is 1.4.8 on 8.0 regression machines whereas on 9.0 machines its 3.10.3 and we are not seeing any issue on 9.0

@wooldridge
Copy link
Contributor Author

Related to this issue is the issue for addressing outdated dependencies:

#343

@wooldridge
Copy link
Contributor Author

@MayankBhatnagar89, is this still an issue?

I updated direct dependencies per #343 (current develop branch) but there are still some (sub)dependencies that are based on older versions of graceful-fs. There's nothing we can do about that.

If this is a significant issue on your side, you can try upgrading your npm:

npm upgrade -g npm

@ehennum ehennum added closed and removed fix labels Apr 9, 2021
@anu3990 anu3990 closed this as completed Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants