首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >node.js 0.10.17错误安装测试(AssertionError)

node.js 0.10.17错误安装测试(AssertionError)
EN

Stack Overflow用户
提问于 2013-08-27 14:20:51
回答 1查看 865关注 0票数 0
代码语言:javascript
复制
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时,我发现了这个错误,有人能给我一个提示吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-08-27 15:30:31

0.10.17是当前稳定的

我有written this up before所以我不会再写一遍了。

摘要: node.js手动安装非常简单

代码语言:javascript
复制
# 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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18468086

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档