Closed
Description
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.
supplement
name | version |
---|---|
nodejs | v8.0 |
npm | v5.0 |
hexo | v3.3.7 |
Activity
NoahDragon commentedon Jun 7, 2017
Already removed in hexo-fs plugin. As this function is never called, the Hexo functions would not be affected.
mouyiquan commentedon Jul 1, 2017
npm install hexo-fs --save
but on my pc,This command is valid only once.
NoahDragon commentedon Jul 2, 2017
@CTBUmyq what do you mean valid? Any error trace output?
yangxy6 commentedon Jul 8, 2017
更新了hexo-fs插件,但是依旧报错
JLHwung commentedon Jul 8, 2017
The hexo specified
hexo-fs
version as^0.1.5
, however, the hexo-fs fix is landed on0.2.0
, according to semver. We need to updatehexo-fs
version to^0.2.0
and release 3.3.8.rangerzhou commentedon 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 commentedon 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 commentedon Jul 27, 2017
@JLHwung Got it, will publish them to NPM later today.
JLHwung commentedon Jul 27, 2017
@NoahDragon Thank you very much.
NoahDragon commentedon Jul 27, 2017
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
fs.SyncWriteStream
abandoned in node8 MoePlayer/hexo-tag-aplayer#16jdhao commentedon Dec 29, 2017
I have also met this warning message. But
npm update
can not updatehexo-deployer-git
,hexo-renderer-ejs
andhexo-server
. I have to uninstall the three packages usingnpm uninstall
and reinstall them usingnpm install <PACKAGE_NAME> --save
.