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安装或插件安装时提示Error: No compatible version found... #83

Open
hefangshi opened this issue Jun 17, 2014 · 13 comments
Labels

Comments

@hefangshi
Copy link
Member

出现这个错误的原因有可能是npm版本过低,可以通过以下命令升级npm

$ npm update -g npm

另外可以参考 #65 调整npm的软件源

如果仍然报错,可以尝试清除npm缓存后重试

$ npm cache clean
@zhangxin2540
Copy link

npm install fis -g报错 npm ERR!Windows_NT 6.1.7601还有一大串 请问什么地方错了

@oxUnd
Copy link
Contributor

oxUnd commented Feb 12, 2015

@zhangxin2540 那一大串才是关键

@zhangxin2540
Copy link

这也不能上传截图 昨天在自己笔记本上也是这么按的

@zhangxin2540
Copy link

公司的笔记本 就不行呢

@zhangxin2540
Copy link

视频里说把fis安装到全局npm install fis -g 后来报错 改成sudo npm install fis -g为什么?

@yongshengli
Copy link

Ubuntu 13.10 安装fis 报如下错误是什么问题呀?

npm ERR! weird error 1
npm http 200 https://registry.npmjs.org/nan
npm ERR! not ok code 0

@oxUnd
Copy link
Contributor

oxUnd commented Mar 23, 2015

@yongshengli 给的信息太少,不过你可以尝试用其他源安装

npm install -g fis --registry=http://registry.cnpmjs.org

@yongshengli
Copy link

用你给的 命令 依然报错,使用淘宝的源,或者使用代理也是报这个错误

images@2.1.3 install /usr/local/lib/node_modules/fis/node_modules/fis-spriter-csssprites/node_modules/images
node -e ""
npm WARN This failure might be due to the use of legacy binary "node"

@yongshengli
Copy link

npm ERR! weird error 1
npm ERR! not ok code 0

@oxUnd
Copy link
Contributor

oxUnd commented Mar 23, 2015

@yongshengli

按照以下命令执行一遍,把结果贴一下。

$ node -v
$ which node
$ which nodejs

@yongshengli
Copy link

➜ ~ node -v
➜ ~ nodejs -v
v0.10.25
➜ ~ which node
/usr/sbin/node
➜ ~ which nodejs
/usr/bin/nodejs

@oxUnd
Copy link
Contributor

oxUnd commented Mar 23, 2015

@yongshengli

是 Ubuntu 下有个应用程序 node 占用了 node 这个可执行文件的名字导致不必要的麻烦。可以参考这个网址 http://stackoverflow.com/questions/18130164/nodejs-vs-node-on-ubuntu-12-04 修正你的问题

或直接执行

$ sudo apt-get remove node
$ sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10

@yongshengli
Copy link

解决了谢谢

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

4 participants