chuhemiao
V2EX  ›  Node.js

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

  •  
  •   chuhemiao · Apr 3, 2016 · 4501 views
    This topic created in 3873 days ago, the information mentioned may be changed or developed.

    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 没遇到这情况。。

    7 replies  •  2016-04-03 21:39:12 +08:00
    cc7756789
    cc7756789
    Apr 3, 2016
    1
    让你重装 spawn-sync 或者升级 Node.js ,不是有错误日志嘛,看一下。
    rrfeng
    rrfeng
    Apr 3, 2016
    2
    升级 nodejs
    升级 spawn-sync

    不是说的很清楚啦么
    chuhemiao
    chuhemiao
    OP
    Apr 3, 2016
    3
    @rrfeng 我的 node 是 0.10.24 , spawn-sync 这个怎么查看版本
    rrfeng
    rrfeng
    Apr 3, 2016
    4
    0.10 太老了,至少也得 4.2 吧……
    node_modules/spawn-sync/package.json 里有写
    chuhemiao
    chuhemiao
    OP
    Apr 3, 2016
    5
    @rrfeng 我找到了, 1.0.15 版本, yum update spawn-sync ?这样升级吗?
    yimity
    yimity
    Apr 3, 2016 via iPhone
    6
    @chuhemiao 多看书。
    chuhemiao
    chuhemiao
    OP
    Apr 3, 2016
    7
    @yimity 晓得了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   941 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:03 · PVG 04:03 · LAX 12:03 · JFK 15:03
    ♥ Do have faith in what you're doing.