node.js 执行命令后一直报这个,但是看代码也是生成成功了

2016-04-03 17:26:15 +08:00
 chuhemiao

1.报错如 Native thread-sleep not available. This will result in much slower performance, but it will still work. You should re-install spawn-sync or upgrade to the lastest version of node if possible. Check /usr/local/node/0.10.24/lib/node_modules/hexo/node_modules/hexo-util/node_modules/cross-spawn/node_modules/spawn-sync/error.log for more details 2.万能的 V 友有碰到过这个没,系统是 centos6.5 之前用 ubuntu 没遇到这情况。。

3616 次点击
所在节点    Node.js
7 条回复
cc7756789
2016-04-03 17:36:57 +08:00
让你重装 spawn-sync 或者升级 Node.js ,不是有错误日志嘛,看一下。
rrfeng
2016-04-03 17:38:04 +08:00
升级 nodejs
升级 spawn-sync

不是说的很清楚啦么
chuhemiao
2016-04-03 17:40:36 +08:00
@rrfeng 我的 node 是 0.10.24 , spawn-sync 这个怎么查看版本
rrfeng
2016-04-03 17:52:34 +08:00
0.10 太老了,至少也得 4.2 吧……
node_modules/spawn-sync/package.json 里有写
chuhemiao
2016-04-03 17:58:59 +08:00
@rrfeng 我找到了, 1.0.15 版本, yum update spawn-sync ?这样升级吗?
yimity
2016-04-03 19:55:10 +08:00
@chuhemiao 多看书。
chuhemiao
2016-04-03 21:39:12 +08:00
@yimity 晓得了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/268310

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX