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

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

Open
xovel opened this issue Dec 31, 2017 · 0 comments
Open

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

xovel opened this issue Dec 31, 2017 · 0 comments

Comments

@xovel
Copy link
Owner

xovel commented Dec 31, 2017

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

1 participant