AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1215855
Accepted
Qumber
Qumber
Asked: 2020-03-01 04:36:24 +0800 CST2020-03-01 04:36:24 +0800 CST 2020-03-01 04:36:24 +0800 CST

Atom 无法在 Ubuntu 上安装任何软件包(错误代码 ELIFECYCLE)

  • 772

今天,突然间,Atom 根本无法安装任何软件包。它以前可以正常工作,我已经安装了一些软件包。但现在它失败了Exit status 134。无论我尝试安装什么软件包,都会发生这种情况。我试过 Hydrogen 和 Atom Beautify,

我尝试了 Atom 设置中的 GUI 以及apm install ...(使用和不使用 sudo)。

这是堆栈跟踪:

> [email protected] postinstall /tmp/apm-install-dir-120129-5590-622axg.s39i7/node_modules/atom-beautify/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: No longer maintained. We recomment migrating to ESLint with eslint-config-wikimedia.
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
Aborted (core dumped)
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-120129-5590-622axg.s39i7/package.json'
npm WARN apm-install-dir-120129-5590-622axg.s39i7 No description
npm WARN apm-install-dir-120129-5590-622axg.s39i7 No repository field.
npm WARN apm-install-dir-120129-5590-622axg.s39i7 No README data
npm WARN apm-install-dir-120129-5590-622axg.s39i7 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! Exit status 134
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.atom/.apm/_logs/2020-02-29T09_58_40_245Z-debug.log

日志文件的最后几行具有完全相同的堆栈。

我怀疑的一件事是我最近安装NodeJS了npm一个 Angular 项目。这会导致问题吗?

我在 Pop!_OS ( Ubuntu)上19.10,使用npm 6.13.6, 和Node v10.15.2.
Hittingatom -v给了我这个(注意 Node 版本与上面版本之间的区别):
Atom : 1.43.0 Electron: 4.2.7 Chrome : 69.0.3497.128 Node : 10.11.0


更新: apm install language-vue工作但apm install atom-beautify仍然apm install hydrogen失败。不知道这里有什么问题。

任何建议都会很可爱。提前致谢。:)

npm atom
  • 1 1 个回答
  • 992 Views

1 个回答

  • Voted
  1. Best Answer
    Sébastien BIDAULT
    2020-04-12T08:40:16+08:002020-04-12T08:40:16+08:00

    我在 Debian 10 上遇到了 atom-id-ui 相同的问题。我手动安装了 node.js 12 来修复它。

    尝试添加存储库并安装 node.js

    # Using Ubuntu
    curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
    sudo apt-get install -y nodejs
    
    # Using Debian, as root
    curl -sL https://deb.nodesource.com/setup_12.x | bash -
    apt-get install -y nodejs
    

    希望对您有所帮助。

    问候。

    • 1

相关问题

  • 无法安装 npm

  • bower install 什么都不做,甚至不抛出错误

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve