Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FAQ] FIS安装失败 #65

Open
hefangshi opened this issue Jun 4, 2014 · 143 comments
Open

[FAQ] FIS安装失败 #65

hefangshi opened this issue Jun 4, 2014 · 143 comments
Labels

Comments

@hefangshi
Copy link
Member

FIS作为nodejs模块发布托管在 npm上,npm是nodejs的包管理工具。查看npm网站

用户需要使用npm install命令来安装FIS。更多npm使用,执行 npm -h 来查看

由于npm经常被墙,安装FIS的时候会出现速度过慢,或者安装不上的问题 。可以通过 npm的 --registry 参数指定仓库。指定国内的npm镜像来解决npm被墙的问题。

例如:

npm install some-npm-module -g --registry=国内镜像 --disturl=https://npm.taobao.org/dist

即你可以通过下面的命令使用cnpmjs仓库安装FIS

npm install fis -g --registry=http://registry.npm.taobao.org/ --disturl=https://npm.taobao.org/dist

注意 如果提示Error: No compatible version found.. ,有可能是npm版本过低导致,可以参考 #83 解决

注意 如果提示WARN optional dep failed, continuing fsevents 警告,可以无视,这个是一个可选依赖包,仅在Mac下可以使用。

@hefangshi hefangshi added the faq label Jun 4, 2014
@hefangshi hefangshi changed the title FIS安装失败 FAQ:FIS安装失败 Jun 4, 2014
@hefangshi hefangshi changed the title FAQ:FIS安装失败 [FAQ]FIS安装失败 Jun 4, 2014
@hefangshi hefangshi changed the title [FAQ]FIS安装失败 [FAQ] FIS安装失败 Jun 4, 2014
@wudi0431
Copy link

MBP 安装 fis 失败

LPT41320:~ wudi$ sudo npm install fis -g

Password:

[email protected] install /usr/local/lib/node_modules/fis/node_modules/fis-command-server/node_modules/chokidar/node_modules/fsevents

node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/wudi/.node-gyp/0.10.33"

gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/fis/node_modules/fis-command-server/node_modules/chokidar/node_modules/fsevents/.node-gyp"

^CLPT41320:~ wudi$

LPT41320:~ wudi$ node -v

v0.10.33

LPT41320:~ wudi$ npm -v

1.4.28

@hefangshi
Copy link
Member Author

试试看sudo npm install --unsafe-perm -g fis

@oxUnd
Copy link
Contributor

oxUnd commented Nov 27, 2014

尝试删掉 /Users/wudi/.node-gyp/0.10.33 这个目录再试

@wudi0431
Copy link

谢谢 已安装成功 困为我本地没有 .node-gyp/0.10.33 这个 下载 就好了

@git-lt
Copy link

git-lt commented Nov 30, 2014

安装时出现以下问题
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
国内镜像也试过了,同样报错

@oxUnd
Copy link
Contributor

oxUnd commented Nov 30, 2014

理论上来说,可以忽略这个报错;完成后试试命令是否可以调用;

fis -v

如果不能正常工作,试图升级node版本到0.10.33,然后清除npm的缓存等来试图修复此问题。

npm cache clean

@git-lt
Copy link

git-lt commented Nov 30, 2014

运行 fis -v 是正常的,但是运行quickstart-demo的时候报错
C:\Users\fis-quickstart-demo>fis server start --type node
starting fis-server .. fail
module.js:340
throw err;

Error: Cannot find module 'crc'

C:\Users\fis-quickstart-demo>fis server start --type node
starting fis-server .. fail

module.js:340
throw err;
^
Error: Cannot find module 'mime-db'

at Function.Module._resolveFilename (module.js:338:15)

node v0.10.33

@hefangshi
Copy link
Member Author

看起来是没有安装全就取消安装了,npm WARN optional dep failed并非报错,这个提示只是指可选的依赖安装失败,但是不影响正常安装,你尝试再重新安装一下吧

@youbl
Copy link

youbl commented Dec 3, 2014

报下面的错误是啥原因啊,我不用镜像,或用淘宝镜像,都出下面的错误:

npm ERR! Error: getaddrinfo ESRCH
npm ERR! at errnoException (dns.js:37:11)
npm ERR! at Object.onanswer as oncomplete
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 2.6.32-279.el6.x86_64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "fis" "-g" "--registry=http://registry.npm.taobao.org/"
npm ERR! cwd /root
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall getaddrinfo
npm ERR! code ESRCH
npm ERR! errno ESRCH
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm ERR! not ok code 0

@oxUnd
Copy link
Contributor

oxUnd commented Dec 3, 2014

@youbl 怎么看着是网络配置的问题呢,无法获取DNS;你尝试这请求一把看看报错不?

$ curl http://registry.npmjs.org/fis

@youbl
Copy link

youbl commented Dec 4, 2014

@xiangshouding
昨天已经解决了,就是网络不通造成的,开启了VPN,造成无法连接外网了

@oxUnd oxUnd closed this as completed Dec 4, 2014
@oxUnd oxUnd reopened this Dec 4, 2014
@enforceway
Copy link

lights install fis-quickstart-demo下载失败。这个也是网络原因啊?nodejs v0.10.33下出现的错误。

@oxUnd
Copy link
Contributor

oxUnd commented Dec 4, 2014

@enforceway 得贴提示,错误提示是啥?

@enforceway
Copy link

@xiangshouding ,
我确认一下哈 ,fis是好用的,fis -v 提示版本是v1.8.6。我的问题是,执行lights install fis-quickstart-demo提示的是
Install start: Start download Component [fis-quickstart-demo@latest].
Install failed: Install [fis-quickstart-demo@latest] failed

这个提示‘Install failed: Install [fis-quickstart-demo@latest] failed’是红色的.

@zhouchengi
Copy link

我安装也失败了 直接git上下载压缩包吧

@highsea
Copy link

highsea commented Dec 29, 2014

FIS是顺利成功了,
但是安装 _lights_ 时要求_node_版本在v0.10.27以上,
于是升级 node 时安装 n 模块报错……

$ npm install -g n

说我 windows 不兼容 0.0

npm ERR! notsup Valid OS:    !win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64
npm ERR! System Windows_NT 6.1.7601

现在 下载安装包中…… node

@tmeixia
Copy link

tmeixia commented Dec 29, 2014

怎么解决啊???????
image

@oxUnd
Copy link
Contributor

oxUnd commented Dec 29, 2014

  • 提示已经显示很清楚了,叫你用root权限试试
  • 出现这种情况,可能你安装的时候用了sudo安装的。
sudo rm -rf /usr/local/lib/node_modules/fis
npm install -g fis #

@tmeixia
Copy link

tmeixia commented Dec 29, 2014

已解决,谢谢

@skybluefly
Copy link

我又重新把java、php-cgi命令添加到环境变量中,输入C:\users\administrator\fis-quickstart-demo>fis server start 时报错了:[error] fail to execute 'tasklist' command,please add your system path
<eg:c:\windows\system32,you should replace 'c' with your system disk> in %path%

@hefangshi
Copy link
Member Author

@skybluefly 你的环境变量坏的比较严重,C:\Windows\System32都被删掉了,才会报这个错误

@skybluefly
Copy link

@hefangshi 我重新安装过系统,可以正常使用了,非常感谢你的回答!

@Excepti0nasE
Copy link

表示 os x 10.10安装fis也是一堆ERR报错。
换了镜像也没用。

@luoye-fe
Copy link

luoye-fe commented May 4, 2015

降了node和npm的版本之后下载的提示滚起来了,可是之后测试fis -v,依旧失败,

@luoye-fe
Copy link

luoye-fe commented May 4, 2015

qq 20150504200835

@oxUnd
Copy link
Contributor

oxUnd commented May 4, 2015

D:\Program Files\nodejs\node_global 加到环境变量里面。

@bluest-hu
Copy link

按照新手教程,运行demo报错。
qq 20150507173203
请问如何解决?

@oxUnd
Copy link
Contributor

oxUnd commented May 7, 2015

@ihuguowei 这个已经应该是启动服务成功了,只是开启浏览器的时候跪了;

你可以直接访问 http://127.0.0.1:8080

@bluest-hu
Copy link

@xiangshouding 是的,服务可以正常访问的。谢谢。

@libofei2004
Copy link

请问如何进行离线安装?windows环境下。

@morongs
Copy link

morongs commented Jun 2, 2015

image
请问是怎么回事?

@oxUnd
Copy link
Contributor

oxUnd commented Jun 2, 2015

@morongs

?

fis -v

@morongs
Copy link

morongs commented Jun 2, 2015

image

@oxUnd
Copy link
Contributor

oxUnd commented Jun 2, 2015

fis server clean
fis server start --type node

@morongs
Copy link

morongs commented Jun 2, 2015

@xiangshouding 可以了,感谢!

@flashgame
Copy link

mac下安装node-gyp rebuild的问题还是出现了,使用上述提到的方案,都没有解决。难道真需要降级node或npm到某个版本?
目前node:v0.12.v,npm:2.11.1

@oxUnd
Copy link
Contributor

oxUnd commented Jun 5, 2015

@flashgame

一般遇到这个问题是你安装 node 时用的 root 权限,然后呢 npm 安装组件的时候又没用 root 权限;或者是在任何这个过程中用了 root 权限。

这个问题解决起来可以修改某些路径的权限抑或是自己设定 npm 安装的目录等方式解决;

@flashgame
Copy link

@xiangshouding 非常感谢,已经解决了问题。

@wangchi
Copy link

wangchi commented Jun 23, 2015

Success!

  v1.9.28
 __/\\\\\\\\\\\\\\\__/\\\\\\\\\\\_____/\\\\\\\\\\\___
  _\/\\\///////////__\/////\\\///____/\\\/////////\\\_       
   _\/\\\_________________\/\\\______\//\\\______\///__
    _\/\\\\\\\\\\\_________\/\\\_______\////\\\_________     
     _\/\\\///////__________\/\\\__________\////\\\______    
      _\/\\\_________________\/\\\_____________\////\\\___   
       _\/\\\_________________\/\\\______/\\\______\//\\\__
        _\/\\\______________/\\\\\\\\\\\_\///\\\\\\\\\\\/___
         _\///______________\///////////____\///////////_____

@star2478
Copy link

star2478 commented Jul 1, 2015

我执行npm install -g fis时,报以下错误,请问是什么原因:
npm ERR! at Object.parse (native)
npm ERR! at RegClient. (/home/hlx/node/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:266:23)
npm ERR! at Request._callback (/home/hlx/node/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:238:65)
npm ERR! at Request.self.callback (/home/hlx/node/lib/node_modules/npm/node_modules/request/request.js:123:22)
npm ERR! at Request.emit (events.js:98:17)
npm ERR! at Request. (/home/hlx/node/lib/node_modules/npm/node_modules/request/request.js:893:14)
npm ERR! at Request.emit (events.js:117:20)
npm ERR! at IncomingMessage. (/home/hlx/node/lib/node_modules/npm/node_modules/request/request.js:844:12)
npm ERR! at IncomingMessage.emit (events.js:117:20)
npm ERR! at _stream_readable.js:938:16
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 2.6.32-431.23.3.el6.x86_64
npm ERR! command "/home/hlx/node/bin/node" "/home/hlx/node/bin/npm" "install" "-g" "fis"
npm ERR! cwd /home/hlx
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! type unexpected_eos
npm ERR! registry error parsing json

@dwqs
Copy link

dwqs commented Jul 17, 2015

2015-07-17 10 05 05

出现了上图的warning,是少了gyp吗? 怎么检测成功安装了fis?fis -v?

@oxUnd
Copy link
Contributor

oxUnd commented Jul 17, 2015

@dwqs #565

@luckymore
Copy link

image
node是用pkg安装的

@oxUnd
Copy link
Contributor

oxUnd commented Jul 17, 2015

@luckymore sudo rm -rf ~/.npm 后重试 #565

@luckymore
Copy link

image

@oxUnd
Copy link
Contributor

oxUnd commented Jul 17, 2015

sudo chmod -R 777 /usr/local

装完以后再把权限改过来。

sudo chmod -R 755 /usr/local

@luckymore
Copy link

@xiangshouding 是这样的😄

@MrBackKom
Copy link

现在安装fis 过程太久了 淘宝的仓储 现在貌似也很久没更新过了吧
百度能不能自己弄个仓储 方便大家安装呢

@alecm20
Copy link

alecm20 commented Oct 20, 2015

windows下npm install -g fis 安装后,运行fis命令,提示不是内部或外部命令,也不是可运行的程序 怎么办啊?

@oxUnd
Copy link
Contributor

oxUnd commented Oct 20, 2015

@MrBackKom

image

如果发现没更新,点击 Sync 链接就更新了。

@oxUnd
Copy link
Contributor

oxUnd commented Oct 20, 2015

@mengch 请参考 #565

@lzj500
Copy link

lzj500 commented Jun 25, 2016

安装完fis-postpackager-simple这个插件,执行fis release -op这个命令 总报[WARNI] missing config file [fis-conf.js]怎么解决呢?
答:先进入项目目录,再执行。

@Napoleonqinxiaofu
Copy link

hello,今天我在使用fis3的纯PHP后端的解决方案的DEMO的时候,发现有一个问题。我把这个DEMO的release目录写成我本地的wamp集成环境下www文件夹(本地网站的根目录)下的一个文件夹(FIS3Test)里,fis3的所有命令都正常,就是当我打开浏览器访问FIS3Test下的文件的时候出现了问题,因为fis3在使用frameworkimport的时候最终编译得到的文件src是指向网站根目录的,比如说:

import('static/css/tooplate_style.css');

编译之后会生成:

<link rel="stylesheet" type="text/css" href="/static/css/tooplate_style.css">

但是我的static文件夹是放在FIS3Test文件夹下的,这就有点儿尴尬了,请问除了将release目录改变成网站根目录之外有什么方法解决它不?(widget这个函数没有出现问题)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests