Skip to content
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

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

Closed
Lizhooh opened this issue Jun 7, 2017 · 11 comments
Closed

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

Lizhooh opened this issue Jun 7, 2017 · 11 comments

Comments

@Lizhooh
Copy link

Lizhooh commented Jun 7, 2017

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
@NoahDragon
Copy link
Member

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

@mouyiquan
Copy link

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

@NoahDragon
Copy link
Member

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

@yangxy6
Copy link

yangxy6 commented Jul 8, 2017

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

@JLHwung
Copy link
Collaborator

JLHwung commented Jul 8, 2017

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
Copy link

rangerzhou commented Jul 27, 2017

通过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
Copy link
Collaborator

JLHwung commented Jul 27, 2017

@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
Copy link
Member

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

@JLHwung
Copy link
Collaborator

JLHwung commented Jul 27, 2017

@NoahDragon Thank you very much.

@NoahDragon
Copy link
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
Copy link

jdhao commented Dec 29, 2017

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants