2017-08-31 209 views
0

我想在ubuntu 14.04中安裝appium。 我已經安裝npm install appium -g/saveError ENOENT ubuntu 14.04

  1. 節點V8.4.0
  2. NPM 5.3.0
  3. NVM V8.4.0

當我運行npm install -g appium 我得到WARN

npm WARN deprecated [email protected]: Babel 5 is no longer being maintained. Upgrade to Babel 6. npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: Copy its ~20 LOC directly into your code instead. /home/fadhlimaulidri/.nvm/versions/node/v8.4.0/bin/appium -> /home/fadhlimaulidri/.nvm/versions/node/v8.4.0/lib/node_modules/appium/build/lib/main.js npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/appium/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

也許是

我必須升級巴貝爾核心

時,我沒有找到如何升級到巴別塔6.然後我跑 npm install --save-dev babel-core

,我也得到WARN

npm WARN saveError ENOENT: no such file or directory, open '/home/fadhlimaulidri/package.json' npm WARN enoent ENOENT: no such file or directory, open '/home/fadhlimaulidri/package.json' npm WARN fadhlimaulidri No description npm WARN fadhlimaulidri No repository field. npm WARN fadhlimaulidri No README data npm WARN fadhlimaulidri No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 任何解決方案?

回答

0

截至今日,Appium與包含npm 5.3.0版的節點版本8.4.0不兼容。

我建議你嘗試使用穩定的節點版本,它是版本:v6.11.2(包括npm 3.10.10)