【问题标题】:npm appium install errornpm appium 安装错误
【发布时间】:2017-08-25 19:58:29
【问题描述】:

通过 npm 安装 appium 时出现以下错误。 我已经安装了 gulp。仍然没有解决这个错误。任何人都面临类似的问题。

  appium@1.5.3 prepublish /Users/m472395/appium
`enter code here`gulp prepublish

module.js:472
    throw err;
    ^

Error: Cannot find module 'appium-gulp-plugins'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/m472395/appium/gulpfile.js:4:19)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

npm ERR! addLocal Could not install /Users/m472395/appium
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/7.4.0/bin/node" "/usr/local/bin/npm" "install" "appium"
npm ERR! node v7.4.0
npm ERR! npm  v4.1.1
npm ERR! code ELIFECYCLE
npm ERR! appium@1.5.3 prepublish: `gulp prepublish`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the appium@1.5.3 prepublish script 'gulp prepublish'.
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 appium package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp prepublish
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs appium
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls appium
npm ERR! There is likely additional logging output above.

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

【问题讨论】:

  • 你安装了“appium-gulp-plugins”吗?
  • 错误看起来很明显
  • 先卸载appium 1.5.3再试试

标签: node.js npm appium


【解决方案1】:

npm uninstall appiumnpm install -g appium。如果您正在寻找 1.5.3 本身,npm install -g appium@1.5.3

【讨论】:

    猜你喜欢
    • 2019-12-03
    • 2023-03-30
    • 2012-02-09
    • 2022-01-10
    • 2016-04-03
    • 1970-01-01
    • 2014-11-21
    • 2023-04-05
    相关资源
    最近更新 更多