简体   繁体   English

ubuntu14.04中的npm安装错误

[英]npm installation error in ubuntu14.04

I am trying to configure Titanium Appcelerator studio in Ubuntu 14.04. 我正在尝试在Ubuntu 14.04中配置Titanium Appcelerator Studio。 I have almost configured everything but not able to install Appcelerator CLI. 我几乎已经配置了所有内容,但无法安装Appcelerator CLI。 Whenever i try to setup i am getting below error: 每当我尝试设置时,都会出现以下错误:

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

Can anyone have any solution? 有人可以解决吗? Please help me i am trying it out hard but not getting any solution. 请帮助我,我正在努力尝试,但没有得到任何解决方案。

What you see is the following issue: https://jira.appcelerator.org/browse/AC-489 您看到的是以下问题: https : //jira.appcelerator.org/browse/AC-489

Please watch it and add your information. 请观看并添加您的信息。 I'll ask to for it to be reopened. 我要求重新打开它。

This problem still occurs, but i added another comment to the ticket on jira. 仍然会出现此问题,但是我在jira的票证上添加了另一条评论。 The fix proposed over there by @Far does work on (X)Ubuntu 14.04, at least for me. @Far在那儿提出的修复程序确实适用于(X)Ubuntu 14.04,至少对我而言。

Of course the prerequisites, like node etc. have to be installed, but then it should be working. 当然,必须安装先决条件(例如节点等),但随后它应该可以工作了。 The actual link for this ticket is now: 现在,该票证的实际链接为:

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


I did install the cli first, as the login/setup procedure is better IMHO: 我确实先安装了cli,因为登录/设置过程更好,恕我直言:

sudo npm install -g appcelerator

Add the fix from the ticket (for me it was line 159 in /usr/lib/node_modules/appcelerator/lib/install.js ) 从票证中添加修复程序(对我来说,它是/usr/lib/node_modules/appcelerator/lib/install.js中的第159行)

Then: 然后:

appc setup

If the Fix is working, you should be greeted with the prompt for username(email) and password, followed by the 4 digit device activation code, sent to your email address (after seeing all the fancy cli download stuff). 如果该修复程序有效,则应提示您输入用户名(电子邮件)和密码,然后是发送到您的电子邮件地址的4位设备激活码(在看到所有花哨的cli下载内容之后)。

The authorization will be saved in your home directory, so now you can download the studio zip from their page, unpack it and just run it. 授权将保存在您的主目录中,因此现在您可以从其页面下载Studio zip,解压缩后即可运行。 Login should allready be active. 登录应该已经激活。

Happy devtime :) 快乐的devtime :)

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

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