【问题标题】:npm installation error in ubuntu14.04ubuntu14.04中的npm安装错误
【发布时间】:2015-12-31 06:22:56
【问题描述】:

我正在尝试在 Ubuntu 14.04 中配置 Titanium Appcelerator studio。 我几乎已经配置了所有内容,但无法安装 Appcelerator CLI。 每当我尝试设置时,我都会遇到以下错误:

Finding latest version ...5.1.0 ✓
Validating security checksum ✓
Installing ... ✓
Compiling platform native modules ...
└ extract-opts/typechecker ... ✓
└ bunyan/dtrace-provider ...  ✓
└ extract-opts/typechecker ...  ✓
└ socket.io-client/ws ...  ✓
└ appc-ldapjs/dtrace-provider ...  ✓
└ bunyan/dtrace-provider ...  ✓
└ appc-ldapjs/dtrace-provider ...  ✓
└ ws/bufferutil ...  ✓
└ ws/utf-8-validate ...  ✓
└ chokidar/fsevents ... npm ERR! Linux 3.13.0-73-generic
npm ERR! argv "/usr/bin/nodejs" "/home/user/.linuxbrew/bin/npm" "install" "fsevents@1.0.5" "--production"
npm ERR! node v5.3.0
npm ERR! npm  v3.3.12
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.0.5
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!     /home/user/.appcelerator/install/5.1.0/package/node_modules/arrow/node_modules/babel/node_modules/chokidar/npm-debug.log

任何人都可以有任何解决方案吗? 请帮助我,我正在努力尝试,但没有得到任何解决方案。

【问题讨论】:

    标签: ubuntu-14.04 react-native titanium-alloy titanium-android npm-install


    【解决方案1】:

    您看到的是以下问题: https://jira.appcelerator.org/browse/AC-489

    请观看并添加您的信息。我会要求重新打开它。

    【讨论】:

    • 我已经应用了这个解决方案。它对我不起作用。
    • 好的。该票已重新开放以进行分类。
    【解决方案2】:

    此问题仍然存在,但我在 jira 上的票证上添加了另一条评论。 @Far 在那边提出的修复确实适用于 (X)Ubuntu 14.04,至少对我而言。

    当然,必须安装先决条件,如节点等,但它应该可以工作。 这张票的实际链接现在是:

    https://jira.appcelerator.org/browse/CLI-916


    我确实先安装了 cli,因为登录/设置过程更好恕我直言:

    sudo npm install -g appcelerator
    

    从工单中添加修复程序(对我来说,它是 /usr/lib/node_modules/appcelerator/lib/install.js 中的第 159强>)

    然后:

    appc setup
    

    如果修复工作正常,您应该会收到输入用户名(电子邮件)和密码的提示,然后是 4 位数的设备激活码,发送到您的电子邮件地址(在看到所有花哨的 cli 下载内容之后)。

    授权将保存在您的主目录中,因此现在您可以从他们的页面下载工作室 zip,解压缩并运行它。登录应该已经处于活动状态。

    开发时间愉快 :)

    【讨论】:

      猜你喜欢
      • 2023-03-30
      • 2012-02-09
      • 2022-01-10
      • 2016-04-03
      • 1970-01-01
      • 2018-05-28
      • 1970-01-01
      • 2014-11-21
      相关资源
      最近更新 更多