简体   繁体   English

如何解决在 Atom 中安装包时出现的错误

[英]How to solve the error while installing packages in Atom

whenever i tried to install a package in atom a get an error as mention bellow每当我尝试在 atom 中安装 package 时,都会出现错误,如下所述

** **

Installing “platformio-ide-terminal@2.10.1” failed.Hide output… npm ERR: code Z_BUF_ERROR npm ERR: errno -5 npm ERR: zlib.安装“platformio-ide-terminal@2.10.1”失败。隐藏输出... npm ERR:代码 Z_BUF_ERROR npm ERR:errno -5 ZBB30E85411B56DF81296726AB445: unexpected end of file npm ERR.文件 npm ERR 意外结束。 A complete log of this run can be found in. npm ERR!可以在 npm ERR 中找到此运行的完整日志! C:\Users\A.atom.apm_logs\2021-02-07T09_09_47_927Z-debug.log ** C:\Users\A.atom.apm_logs\2021-02-07T09_09_47_927Z-debug.log **

please help me to solve this problem.请帮我解决这个问题。

This is the visuals of the error这是错误的视觉效果

  1. Close all atom windows.关闭所有原子 windows。
  2. Rename ~/.atom directory in your /username folder to something else or just delete it.将 /username 文件夹中的 ~/.atom 目录重命名为其他名称,或者直接将其删除。
  3. Restart Atom.重启原子。
  4. Now try to install package.现在尝试安装 package。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM