npm - 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#
解决方案
我是固定的。
因为我的节点和 npm 版本太旧,我更新我的文档将安装在我的电脑上。
推荐阅读
- nuget - webdriver没有在根项目C#中复制
- php - 在 wordpress/woocomerce 上以编程方式添加产品缩略图和图像
- swift - swiftui和observableObject的双重属性的两种方式绑定
- powershell - Powershell:您可以导入模块的单独副本吗?
- php - PHP查找字符串中包含句点并以空格结尾的所有子字符串
- ruby-on-rails - 客户端(反应)更新后如何从 Rails 控制器更新操作重定向?
- python-3.x - 如何让 tkinter 按钮在执行命令时传递其自身的 id
- python - Django REST 权限类不能在 OR 中一起工作,而是按预期独立工作
- java - 如何在 json dtos 上实现 @NotNull 验证?
- dialogflow-es - Dialogflow 是否可以作为语音界面添加到 Web 应用程序和语音启用 Web 应用程序功能?