centos8 安装appium报错errno ENOENT [email protected]
appium吧
全部回复
仅看楼主
level 3
fabbychips 楼主
nodejs 安装
yum install gcc-c++ openssl-devel
wget https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-x64.tar.xz
tar -xvf node-v14.17.0-linux-x64.tar.xz
vi /etc/profile
#环境变量追加
# nodejs PATH
export NODE_HOME=/home/selenium/node-v14.17.0-linux-x64
export PATH=$NODE_HOME/bin:$PATH
source /etc/profile
我现在装的是最新的node版本了
npm install -g appium
报错
sh: node: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] install: `node install-npm.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-05-14T05_06_33_166Z-debug.log
2021年05月14日 05点05分 1
level 3
fabbychips 楼主
nvm install node
通过这个安装node后,就可以成功安装appium了
2021年05月14日 06点05分 2
1