我正在尝试安装最新版本的cordova,目前似乎是5.1.1。当我做的时候
let singleCell: SingleRowCell = collectionView.dequeueReusableCellWithReuseIdentifier("mySingleCell", forIndexPath: indexPath) as! SingleRowCell
// config the cell
return singleCell
一切似乎都有效。但后来我做了
npm install cordova -g
我得到3.5.0-0.2.7,这似乎不对。
当我这样做时
cordova -v
看起来5.1.1实际上是最新版本,而版本字段实际上是5.1.1。我很困惑为什么cordova -v不会给我相同的信息。
我确信这有一个简单的解释,我只是无法弄清楚发生了什么。
谢谢,
斯科特
编辑: 这种情况发生在Windows 7,最新节点和npm版本上。