首页 > 解决方案 > npm -install 错误,我无法安装 appium

问题描述

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

我正在按照点击 [这里](如何在 Ubuntu for android中设置 Appium 来设置我的 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#

标签: npmappium

解决方案


我是固定的。
因为我的节点和 npm 版本太旧,我更新我的文档将安装在我的电脑上。


推荐阅读