2017-05-07 61 views
1

尝试安装appium时出现错误。它总是说:节点错误。 这里是代码: 须藤NPM安装WD节点错误Ubuntu

[email protected] install /home/nataliya/node_modules/wd node scripts/build-browser-scripts

SH:1:节点:找不到 [email protected] /家庭/娜塔莉亚 ├──[email protected]外来 ├──的Redis @ 0.7.3 ├──[email protected] └──[email protected]

npm WARN [email protected] No description 
npm WARN [email protected] No repository field. 
npm ERR! Linux 4.4.0-77-generic 
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "wd" 
npm ERR! node v4.2.6 
npm ERR! npm v3.5.2 
npm ERR! file sh 
npm ERR! code ELIFECYCLE 
npm ERR! errno ENOENT 
npm ERR! syscall spawn 

npm ERR! [email protected] install: `node scripts/build-browser-scripts` 
npm ERR! spawn ENOENT 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node scripts/build-browser-scripts'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the wd package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node scripts/build-browser-scripts 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs wd 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls wd 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/nataliya/npm-debug.log 

当我尝试安装装配Appium,它与此错误出现:

sudo npm install -g appium 
    /home/nataliya/npm/bin/appium -> /home/nataliya/npm/lib/node_modules  /appium/build/lib/main.js 
    /home/nataliya/npm/lib 
    └── [email protected] 

    npm WARN optional Skipping failed optional dependency /appium/fsevents: 
    npm WARN notsup Not compatible with your operating system or architecture: [email protected] 
+0

我更愿意使用[官方的Node.js仓库](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)来安装Node.js在Ubuntu上:它在Node.js版本方面更加新颖,并且它还以合适的名称('node',而不是'nodejs')安装Node.js二进制文件。 – robertklep

回答

1

我觉得你的this issue受害者:node安装的方式,你只需要在$PATHnodejs,但你需要node

+0

我非常感谢答案,任何想法如何解决?干杯 – NatNat

+0

你检查了链接后面的答案吗? –

+0

我做到了,是的。而我现在得到的是相同的错误。 – NatNat