本文介绍了安装Cordova时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我想用npm安装Cordova时,出现以下错误:
When I want to install Cordova with npm I get the following error:
Error: No compatible version found: ripple-emulator@'>=0.9.15'
Node,Nodejs和npm均已安装.我找不到任何可以帮助的东西.
我的命令是:
Node,Nodejs, and npm are all installed. I couldn't find anything that could help.
My command was:
npm install cordova
OR
sudo npm install -g cordova
推荐答案
您的Node.js版本可能太旧了. ripple-emulator
至少需要0.8.0,请使用node -v
检查您的版本.
Your Node.js version is probably too old. ripple-emulator
requires at least 0.8.0, check your version using node -v
.
在这种情况下,您要么必须从发行版中获取更新的软件包,要么从 nodejs中下载并安装较新的版本. .
If that is the case, you either have to get a newer package from your distribution or download and install a newer version from nodejs.org.
这篇关于安装Cordova时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!