【问题标题】:node.js 0.10.17 error installation test (AssertionError)node.js 0.10.17 错误安装测试(AssertionError)
【发布时间】:2013-08-30 08:34:06
【问题描述】:
Command: out/Release/node /Users/akhyar/Documents/node/node-master/test/simple/test-memory-usage-emfile.js
=== release test-tls-server-verify ===                                         
Path: simple/test-tls-server-verify
connecting with agent1
  connecting with agent2
  connecting with agent3
  connecting with nocert
  connecting with agent1
Running 'Do not request certs. Everyone is unauthorized.'
- unauthed connection: null
  * unauthed
- unauthed connection: null
  * unauthed
- unauthed connection: null
  * unauthed
- unauthed connection: null
  * unauthed
Running 'Allow both authed and unauthed connections with CA1'

assert.js:92
  throw new assert.AssertionError({
        ^
AssertionError: agent1 rejected, but should NOT have been
    at ChildProcess.<anonymous> (/Users/akhyar/Documents/node/node-master/test/simple/test-tls-server-verify.js:217:14)
    at ChildProcess.EventEmitter.emit (events.js:106:17)
    at Process.ChildProcess._handle.onexit (child_process.js:790:12)
Command: out/Release/node /Users/akhyar/Documents/node/node-master/test/simple/test-tls-server-verify.js
[02:17|% 100|+ 633|-   3]: Done                                                
make: *** [test] Error 1

我不知道为什么会发生这个错误。 node.js 0.10.17 是稳定版吗? 在 macosx 山狮 10.8.4 上安装 node.js 时出现该错误 谁能给个提示?

【问题讨论】:

    标签: node.js


    【解决方案1】:

    0.10.17 是最新且稳定的

    我已经written this up before,所以我不会再写了。

    总结: node.js 手动安装非常简单

    # make a `~/.nodes/ folder
    mkdir -p ~/.nodes && cd ~/.nodes
    
    # download the binaries from nodejs.org
    # in this case, here's the linux version
    curl -O http://nodejs.org/dist/v0.10.17/node-v0.10.17-darwin-x64.tar.gz
    
    # extract
    tar -xzf node-v0.10.17-darwin-x64.tar.gz
    
    # rename folder to 0.10.17
    mv node-v0.10.17-darwin-x64 0.10.17
    
    # create a `current` symlink
    ln -s 0.10.17 current
    
    # prepend ~/.nodes/bin to your path
    # you'll want to save this in ~/.bashrc or ~/.zshrc or something
    export PATH="~/.nodes/current/bin:$PATH"
    
    # cleanup
    rm ~/.nodes/node-v0.10.17-darwin-x64.tar.gz
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-03
      • 2015-06-16
      • 2016-02-29
      • 2015-02-18
      • 1970-01-01
      • 1970-01-01
      • 2014-08-27
      • 1970-01-01
      相关资源
      最近更新 更多