问题描述
- linux下安装node.js报错,求大神解决
-
目前正要部署应用到linux服务器上在安装node.js时各种报错,首先是python版本问题,后来装了python2.7.5,
在执行./configure时,出现这个错误
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.朋友说是openssl的版本问题~目前还没解决...
有没有遇到过相似问题的,求指教一下,头快炸了~
解决方案
windows和linux的node.js配置起来的确比较烦躁
解决方案二:
NODE JS 是不是下载的有问题啊?
解决方案三:
对应的python hash库安装一下