jaredly / jaredly/hexo-admin

[DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
299
PR merge metrics
No merged PRs in 30d

Description

My version:
```
node:v10.16.0
hexo:3.9.0
hexo-admin:2.3.0
```

When I run:`hexo s --debug`, it will show one warning:

```
02:34:10.940 DEBUG Plugin loaded: hexo-admin
(node:9248) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.
```

And from the node.js v8 API: or the pic:
![image](https://user-images.githubusercontent.com/45334066/68639039-4ca1ba00-053e-11ea-88ee-1dc78f55c92e.png)

This problem also happend in hexo ,please see .
The `hexo-deployer-git 0.3.1` plugin has solved the problem.

Maybe this plugin should handle this too. Good luck!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running `hexo s --debug` with the listed Node.js and hexo-admin versions, then trace the plugin startup path that emits the `fs.SyncWriteStream` warning. Compare the fix in `hexo-deployer-git 0.3.1`; done means the deprecated API is no longer used and the warning no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
tooling, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.