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
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