Npm Atom无法安装自动更新-packages@1.0.0

Npm Atom无法安装自动更新-packages@1.0.0,npm,atom-editor,Npm,Atom Editor,我试图在Ubuntu上安装Atom的自动更新包,但是当我使用命令时 apm install auto-update-packages 这是页面中的第一步,它返回了此错误 npm ERR! Linux 3.16.0-30-generic npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--g

我试图在Ubuntu上安装Atom的自动更新包,但是当我使用命令时

apm install auto-update-packages
这是页面中的第一步,它返回了此错误

npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/liam/.atom/.apm/.apmrc" "--userconfig" "/home/liam/.atom/.apmrc" "install" "/tmp/d-115528-3402-1fgbwlx/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: auto-update-packages@1.0.0
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-115528-3402-197s6zu/npm-debug.log

没有/tmp/apm-install-dir-115528-3402-197s6zu/目录,因此没有要显示的文件,尽管我假设它只是输出的内容

错误消息已经告诉您出了什么问题。您使用的是Linux,而软件包需要Darwin,即OSX


这与包的元数据相匹配:

因此,该软件包仅在OSX上受支持。实际上,有一种方法可以添加Windows和Linux支持

  "os": [
    "darwin"
  ]