When I want to install Cordova with npm I get the following error:
当我想用npm安装Cordova时,我得到的错误是:
Error: No compatible version found: ripple-emulator@'>=0.9.15'
Node,Nodejs, and npm are all installed. I couldn't find anything that could help.
My command was:
节点、Nodejs和npm都已安装。我找不到任何有用的东西。我的命令是:
npm install cordova
OR
或
sudo npm install -g cordova
2 个解决方案
#1
2
Your Node.js version is probably too old. ripple-emulator
requires at least 0.8.0, check your version using node -v
.
你的节点。js版本可能太老了。ripp -仿真器至少需要0.8.0,使用node -v检查您的版本。
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.
如果是这样的话,您要么从您的发行版获得一个更新的包,要么从nodejs.org下载并安装一个更新的版本。
#2
1
That's what worked for me (though I installed with apt-get, I had node 0.6 whereas the more recent version was 0.10.31) : Add node to your sources :
这对我来说是有用的(虽然我安装了apt-get,但我有node 0.6,而最近的版本是0.10.31):将node添加到您的源代码中:
sudo apt-add-rep ository ppa:chris-lea/node.js
then update sources
然后更新源
sudo apt-get update
then install (or update) nodejs
然后安装(或更新)nodejs
sudo apt-get install nodejs
source : http://doc.ubuntu-fr.org/nodejs (in french)
来源:http://doc.ubuntu-fr.org/nodejs(法语)
#1
2
Your Node.js version is probably too old. ripple-emulator
requires at least 0.8.0, check your version using node -v
.
你的节点。js版本可能太老了。ripp -仿真器至少需要0.8.0,使用node -v检查您的版本。
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.
如果是这样的话,您要么从您的发行版获得一个更新的包,要么从nodejs.org下载并安装一个更新的版本。
#2
1
That's what worked for me (though I installed with apt-get, I had node 0.6 whereas the more recent version was 0.10.31) : Add node to your sources :
这对我来说是有用的(虽然我安装了apt-get,但我有node 0.6,而最近的版本是0.10.31):将node添加到您的源代码中:
sudo apt-add-rep ository ppa:chris-lea/node.js
then update sources
然后更新源
sudo apt-get update
then install (or update) nodejs
然后安装(或更新)nodejs
sudo apt-get install nodejs
source : http://doc.ubuntu-fr.org/nodejs (in french)
来源:http://doc.ubuntu-fr.org/nodejs(法语)