如何查看我的create-nuxt-app版本并进行升级? [英] How to check my create-nuxt-app version and upgrade it?

查看:1438
本文介绍了如何查看我的create-nuxt-app版本并进行升级?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:

以前,运行yarn create nuxt-app myApp会安装Nuxt v2.4.0,但是今天例如,我注意到您已降级为Nuxt v2.0.0.我没有更改开发环境,所以我无法理解这种行为.

我进行了一些搜索,并在其他地方抱怨了:

因此,要求OP升级其 create-nuxt-app 版本.

问题:

但是该怎么做呢?如何检查我有哪个create-nuxt-app?

奖金:

我阅读了为什么Create-Nuxt -App是否安装了nuxt 1.4.5版?,答案提示您:请确保您没有在本地或全局安装版本的create-nuxt-app."但是,您怎么甚至在本地和全局安装create-nuxt-app?

信息:

当我运行npm list -g | grep 'nuxt-app'时,我什么也没得到.

解决方案

我终于找到了答案:

从Github上@manniL上执行截图也是有帮助的:

Background:

Previously, running yarn create nuxt-app myApp installs Nuxt v2.4.0 but today for example I noticed you downgraded to Nuxt v2.0.0. I did not change the development environment so I can not understand this behavior.

I did some search and complained elsewhere when I landed on this:

So the OP was asked to upgrade his create-nuxt-app version.

Question:

But how to do that ? How to check which create-nuxt-app I do have ?

Bonus:

I read why does Create-Nuxt-App installs nuxt version 1.4.5? and the answer says you: "Make sure you don't have a version of create-nuxt-app installed locally or globally." But how do you even install create-nuxt-app locally and globally ?

Info:

When I run npm list -g | grep 'nuxt-app' I do not get anything.

解决方案

I finally found an answer here and there:

This execution screenshot from @manniL on Github is helpful also:

这篇关于如何查看我的create-nuxt-app版本并进行升级?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆