linux运行luminati,安装luminati的nodejs环境配置

本文档详细介绍了在CentOS环境下使用bash安装Luminati代理的过程。包括解决nodejs及npm版本过低的问题,手动安装高版本nodejs及npm的方法,并记录了安装过程中遇到的错误及其可能的原因。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装文档:https://luminati-china.biz/products/proxy-manager

选择bash安装方法执行:curl -L https://luminati-china.biz/static/lpm/luminati-proxy-latest-setup.sh | bash

会自动检测nodejs的版本和npm命令的版本,一般默认在centos下npm的命令版本是很低的。luminati要求6.14.6 以上。

如果出现找不到/usr/bin/npm 的报错,要手工安装nodejs的新版本和npm的新版本。命令如下:

1. First, update the local repository to ensure you install the latest versions of Node.js and npm. Type in the following command:

sudo yum update

2. Next, add the NodeSource repository to the system with:

curl –sL https://rpm.nodesource.com/setup_10.x | sudo bash -

3. The output will prompt you to use the following command if you want to install Node.js and npm:

sudo yum install –y nodejs

4. Finally, verify the installed software with the commands:

node –version

check node version

npm –version

# npm --version

6.14.8

这样就好了。再继续安装luminati-proxy-latest-setup.sh即可:

# curl -L https://luminati-china.biz/static/lpm/luminati-proxy-latest-setup.sh | bash

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 83 100 83 0 0 259 0 --:--:-- --:--:-- --:--:-- 260

100 17425 100 17425 0 0 54092 0 --:--:-- --:--:-- --:--:-- 54092

Luminati install script. Install id: rWitMQVEUAPNH6F465MmSEmYy4SYBrD9

checking deps...

checking brew...

checking curl...

checking nodejs...

node v10.23.0 is installed

required node version is 12.18.3

installing deps...

installing nodejs from yum

checking npm...

cleaning lpm related node packages and npm cache...

removing luminati links...

installing Luminati proxy manager...

make: g++: Command not found

make: *** [Release/obj.target/addon/src/heapdump.o] Error 127

gyp ERR! build error

gyp ERR! stack Error: `make` failed with exit code: 2

gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)

gyp ERR! stack at ChildProcess.emit (events.js:198:13)

gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)

gyp ERR! System Linux 3.10.0-1127.13.1.el7.x86_64

gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /usr/lib/node_modules/@luminati-io/luminati-proxy/node_modules/heapdump

gyp ERR! node -v v10.23.0

gyp ERR! node-gyp -v v5.1.0

gyp ERR! not ok

Downloading Chromium r706915 - 118.3 Mb [====================] 100% 0.0s

check install

Luminati installed successfully!

Luminati install script complete. Install id: rWitMQVEUmYy4SYBrD9

To run the process enter 'luminati'

以上还是有一些报错,不知道什么意思。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值