fis icon indicating copy to clipboard operation
fis copied to clipboard

[FAQ] FIS安装失败

Open hefangshi opened this issue 11 years ago • 143 comments

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
  • 下面提供一个国内镜像。其他镜像大家可以自己找找
  • --registry=http://registry.npm.taobao.org/

即你可以通过下面的命令使用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 avatar Jun 04 '14 14:06 hefangshi

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

wudi0431 avatar Nov 26 '14 07:11 wudi0431

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

hefangshi avatar Nov 26 '14 10:11 hefangshi

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

oxUnd avatar Nov 27 '14 00:11 oxUnd

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

wudi0431 avatar Nov 28 '14 03:11 wudi0431

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

git-lt avatar Nov 30 '14 03:11 git-lt

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

fis -v

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

npm cache clean

oxUnd avatar Nov 30 '14 08:11 oxUnd

运行 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

git-lt avatar Nov 30 '14 11:11 git-lt

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

hefangshi avatar Nov 30 '14 15:11 hefangshi

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

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

youbl avatar Dec 03 '14 13:12 youbl

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

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

oxUnd avatar Dec 03 '14 23:12 oxUnd

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

youbl avatar Dec 04 '14 01:12 youbl

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

enforceway avatar Dec 04 '14 09:12 enforceway

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

oxUnd avatar Dec 04 '14 10:12 oxUnd

@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’是红色的.

enforceway avatar Dec 08 '14 10:12 enforceway

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

zhouchengi avatar Dec 08 '14 10:12 zhouchengi

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

highsea avatar Dec 29 '14 02:12 highsea

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

tmeixia avatar Dec 29 '14 07:12 tmeixia

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

oxUnd avatar Dec 29 '14 08:12 oxUnd

已解决,谢谢

tmeixia avatar Dec 29 '14 12:12 tmeixia

我又重新把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%

skybluefly avatar Jan 15 '15 11:01 skybluefly

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

hefangshi avatar Jan 15 '15 14:01 hefangshi

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

skybluefly avatar Jan 16 '15 22:01 skybluefly

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

Excepti0nasE avatar Jan 28 '15 16:01 Excepti0nasE

1 error generated. make: *** [Release/obj.target/fse/fsevents.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Darwin 14.1.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/fis/node_modules/fis-command-server/node_modules/chokidar/node_modules/fsevents gyp ERR! node -v v0.10.35 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok npm WARN optional dep failed, continuing [email protected]

RichardLee1978 avatar Feb 01 '15 17:02 RichardLee1978

@RichardLee1978 这是因为fsevent是个addon的插件,需要编译,而你的机器上应该没有能编译通过的依赖环境。不过只要安装不挂掉,你可以忽略这个错误,等装完以后照样使用,只是性能稍微差点而已。

如果你就是想编译过去,那么你可能需要安装xcode等相关编译依赖,然后再重新安装。

oxUnd avatar Feb 02 '15 01:02 oxUnd

image

Yang03 avatar Feb 11 '15 12:02 Yang03

$ export PATH=$HOME/node_modules/bin:$PATH
$ fis -v

oxUnd avatar Feb 11 '15 13:02 oxUnd

谢谢楼上的,感谢....

Yang03 avatar Feb 11 '15 13:02 Yang03

D:\node.js>npm install fis -g npm ERR! Windows_NT 6.1.7601 npm ERR! argv "D:\node.js\node.exe" "D:\node.js\node_modules\npm\bin\np m-cli.js" "install" "fis" "-g" npm ERR! node v0.12.0 npm ERR! npm v2.5.1 npm ERR! path C:\Users\Administrator\AppData\Roaming\npm\node_modules\fis\node_m odules\fis-command-server\lib npm ERR! code EBUSY npm ERR! errno -4082

npm ERR! EBUSY, unlink 'C:\Users\Administrator\AppData\Roaming\npm\node_modules
fis\node_modules\fis-command-server\lib' npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! http://github.com/npm/npm/issues npm ERR! error rolling back Error: EBUSY, unlink 'C:\Users\Administrator\AppData \Roaming\npm\node_modules\fis\node_modules\fis-command-server\lib' npm ERR! error rolling back at Error (native) npm ERR! error rolling back { [Error: EBUSY, unlink 'C:\Users\Administrator\App Data\Roaming\npm\node_modules\fis\node_modules\fis-command-server\lib'] npm ERR! error rolling back errno: -4082, npm ERR! error rolling back code: 'EBUSY', npm ERR! error rolling back path: 'C:\Users\Administrator\AppData\Roaming
\npm\node_modules\fis\node_modules\fis-command-server\lib' }

npm ERR! Please include the following file with any support request: npm ERR! D:\node.js\npm-debug.log 这个错误

zhangxin2540 avatar Feb 12 '15 07:02 zhangxin2540

请问怎么解决呢

zhangxin2540 avatar Feb 12 '15 07:02 zhangxin2540