【问题标题】:npm -install error ,I can't install appiumnpm -install 错误,我无法安装 appium
【发布时间】:2019-12-03 06:39:14
【问题描述】:

我是 Appium 新用户我遇到了一些错误,当我使用 NPM 命令(linux)时,我已经更新了我的(“nvm”和“npm”)版本。

我关注点击[这里](How to setup Appium in Ubuntu for android"来设置我的appium。

下一步该怎么做!

 root@hauying-yoga-linux:/home/hauying# npm install -g grunt-cli
 npm ERR! TypeError: Cannot read property 'match' of undefined
 npm ERR!     at Unpack.extractOpts.filter 
 (/usr/share/npm/lib/utils/tar.js:245:19)
 npm ERR!     at Unpack.[consumeHeader] 
 (/usr/lib/nodejs/tar/lib/parse.js:134:48)
 npm ERR!     at Unpack.[consumeChunkSub] 
 (/usr/lib/nodejs/tar/lib/parse.js:385:30)
 npm ERR!     at Unpack.[consumeChunk] 
 (/usr/lib/nodejs/tar/lib/parse.js:362:30)
 npm ERR!     at Unpack.write 
 (/usr/lib/nodejs/tar/lib/parse.js:309:25)
 npm ERR!     at Unzip.ondata (_stream_readable.js:667:20)
 npm ERR!     at Unzip.emit (events.js:189:13)
 npm ERR!     at addChunk (_stream_readable.js:284:12)
 npm ERR!     at readableAddChunk (_stream_readable.js:265:11)
 npm ERR!     at Unzip.Readable.push (_stream_readable.js:220:10)
 npm ERR! If you need help, you may report this *entire* log,
 npm ERR! including the npm and node versions, at:
 npm ERR!     <http://github.com/npm/npm/issues>

 npm ERR! System Linux 4.19.37-5rodete4-amd64
 npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" 
 "grunt-cli"
 npm ERR! cwd /home/hauying
 npm ERR! node -v v10.15.2
 npm ERR! npm -v 1.4.21
 npm ERR! 
 npm ERR! Additional logging details can be found in:
 npm ERR!     /home/hauying/npm-debug.log
 npm ERR! not ok code 0
 root@hauying-yoga-linux:/home/hauying#

【问题讨论】:

    标签: npm appium


    【解决方案1】:

    我已经解决了。
    因为我的节点和 npm 版本太旧,我更新我的文档将安装在我的电脑上。

    【讨论】:

      猜你喜欢
      • 2014-07-04
      • 1970-01-01
      • 2019-02-14
      • 2019-12-03
      • 2022-01-06
      • 2018-02-12
      • 2014-07-19
      • 2019-05-09
      • 1970-01-01
      相关资源
      最近更新 更多