Skip to content

[hexo]升级 - 解决 fs.SyncWriteStream 废弃引发的警告 #28

Description

@xovel

node v8 发布之时,明确表示 fs.SyncWriteStream 这个 API 被标识为 deprecatednode#10467

hexo 命令执行的时候,命令行会给出一个这样的警告:

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

为修复强迫症,需要对工具进行升级了。同时也顺便更新一下全局的 hexo-cli

然而,执行了 npm update 之后,貌似没什么效果。

一经翻阅之下,发现有一个叫做 hexo-fs 的项目调用了 fs.SyncWriteStream有趣的是,实际上这个引用已经没有太大的意义了,因为后面没有使用到

然而,执行了 npm update hexo-fs --save 之后依然没有用。

那么,问题就只有一个了,还有其他插件用到了这个被废弃的 API。

是的,这个帖子里面有提到:hexo#2598

再更新这两个插件就可以解决报警告的问题了:

npm install hexo-deployer-git hexo-server --save

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions