V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
chuhemiao
V2EX  ›  Node.js

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

  •  
  •   chuhemiao · Apr 3, 2016 · 4075 views
    This topic created in 3688 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
        1
    cc7756789  
       Apr 3, 2016
    让你重装 spawn-sync 或者升级 Node.js ,不是有错误日志嘛,看一下。
    rrfeng
        2
    rrfeng  
       Apr 3, 2016
    升级 nodejs
    升级 spawn-sync

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