Skip to content

fs.SyncWriteStream is deprecated [Nodejs v8.0] #2598

Closed
@Lizhooh

Description

@Lizhooh

nodejs v8.0 fs: runtime deprecation for fs.SyncWriteStream.
I put the nodejs update to v8.0, then hexo at least some functions can not be run.
Can this be solved?

> fs.SyncWriteStream
> (node:57352) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.

nodejs/node#10467

supplement

name version
nodejs v8.0
npm v5.0
hexo v3.3.7

Activity

NoahDragon

NoahDragon commented on Jun 7, 2017

@NoahDragon
Member

Already removed in hexo-fs plugin. As this function is never called, the Hexo functions would not be affected.

mouyiquan

mouyiquan commented on Jul 1, 2017

@mouyiquan

npm install hexo-fs --save
but on my pc,This command is valid only once.

NoahDragon

NoahDragon commented on Jul 2, 2017

@NoahDragon
Member

@CTBUmyq what do you mean valid? Any error trace output?

yangxy6

yangxy6 commented on Jul 8, 2017

@yangxy6

更新了hexo-fs插件,但是依旧报错

reopened this on Jul 8, 2017
JLHwung

JLHwung commented on Jul 8, 2017

@JLHwung
Collaborator

The hexo specified hexo-fs version as ^0.1.5, however, the hexo-fs fix is landed on 0.2.0, according to semver. We need to update hexo-fs version to ^0.2.0 and release 3.3.8.

rangerzhou

rangerzhou commented on Jul 27, 2017

@rangerzhou

通过npm install hexo-fs --save解决不了的,是因为在hexo-deployer-git中还有一个node_modules/hexo-fs目录,但是hexo-deployer-git官方Github中是没有这个目录的,可能是因为npm源没有更新,所以hexo-deployer-git中有一个旧版本的hexo-fs,注释掉E:\github\blog\node_modules\hexo-deployer-git\node_modules\hexo-fs\lib\fs.js中第718行exports.SyncWriteStream = fs.SyncWriteStream;就行了,或者手动更新hexo-deployer-git。
详情请见:http://rangerzhou.top/2017/07/27/Hexo%E5%8D%9A%E5%AE%A2%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9/

JLHwung

JLHwung commented on Jul 27, 2017

@JLHwung
Collaborator

@rangerzhou Good catch! Once we release a new version of hexo-deployer-git, you can solve this via npm upgrade

@NoahDragon I've updated the hexo-deployer-git and hexo-deployer-heroku to use hexo-fs 0.2.x, could you publish these packages? Thank you.

NoahDragon

NoahDragon commented on Jul 27, 2017

@NoahDragon
Member

@JLHwung Got it, will publish them to NPM later today.

JLHwung

JLHwung commented on Jul 27, 2017

@JLHwung
Collaborator

@NoahDragon Thank you very much.

NoahDragon

NoahDragon commented on Jul 27, 2017

@NoahDragon
Member

FYI, the following packages may contain the old version of Hexo-fs have been updated.

hexo-deployer-git 0.3.1
hexo-math 3.0.3
hexo-renderer-ejs 0.3.1
hexo-deployer-openshift 0.1.2
hexo-server 0.2.2
hexo-deployer-heroku 0.1.2

jdhao

jdhao commented on Dec 29, 2017

@jdhao

I have also met this warning message. But npm update can not update hexo-deployer-git, hexo-renderer-ejs and hexo-server. I have to uninstall the three packages using npm uninstall and reinstall them using npm install <PACKAGE_NAME> --save.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @JLHwung@NoahDragon@jdhao@Lizhooh@mouyiquan

        Issue actions

          fs.SyncWriteStream is deprecated [Nodejs v8.0] · Issue #2598 · hexojs/hexo