热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

用vue创建nuxt项目报错,网上找遍了查不到什么原因,大佬们帮帮忙!!!

问题描述我想用nuxt官网命令1 yarn create nuxt-app 创建一个前端项目,但是运行该命令的时候报错了,具体报错如下:123456789101112131415...warning

问题描述

我想用nuxt官网命令




1
 yarn create nuxt-app <项目名>

创建一个前端项目,但是运行该命令的时候报错了,具体报错如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
...

warning "nuxt-app > firebase > @firebase/performance > @firebase/installations > @firebase/installations-types@0.1.0" has unmet peer dependency "@firebase/app-types@0.x".

[4/4] Building fresh packages...

success Installed "create-nuxt-app@2.9.2" with binaries:

      - create-nuxt-app

'C:\Users\win' 不是内部或外部命令,也不是可运行的程序

或批处理文件。

error Command failed.

Exit code: 1

Command: C:\Users\win 10\AppData\Local\Yarn\bin\create-nuxt-app

Arguments: officialWebsite.shanglian

Directory: D:\demo\_WebDemo\officialWebsite.shanglian

Output:



info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.


问题出现的环境背景及自己尝试过哪些方法

我尝试使用网上提供的方法运行




1
yarn global add create nuxt-app

这条命令,但是这条命令也报错,
于是我又尝试网上提供的命令运行

1
yarn config set ignore-engines true

,然后重新运行

1
yarn global add create nuxt-app

不报错。
当我重新运行nuxt官网提供的安装命令

1
 yarn create nuxt-app <项目名>

时,有提示让我选择版本具体如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
D:\demo\_WebDemo\officialWebsite.shanglian>yarn create nuxt-app officialWebsite.shanglian

yarn create v1.17.3

[1/4] Resolving packages...

warning Lockfile has incorrect entry for "vuexblaze@^0.0.3". Ignoring it.

Couldn't find any versions for "vuexblaze" that matches "^0.0.3"

? Please choose a version of "vuexblaze" from this list: (Use arrow keys)

> 0.1.1

  0.1.0

  0.0.9

  0.0.8

  0.0.7

  0.0.6

  0.0.5

  0.0.4

  0.0.2

  0.0.1

我随便选了一个然后就报错了,具体报错代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
D:\demo\_WebDemo\officialWebsite.shanglian>yarn create nuxt-app officialWebsite.shanglian

yarn create v1.17.3

[1/4] Resolving packages...

warning Lockfile has incorrect entry for "vuexblaze@^0.0.3". Ignoring it.

Couldn't find any versions for "vuexblaze" that matches "^0.0.3"

? Please choose a version of "vuexblaze" from this list: 0.1.1

[2/4] Fetching packages...

info fsevents@2.0.7: The platform "win32" is incompatible with this module.

info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.

info fsevents@1.2.9: The platform "win32" is incompatible with this module.

info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.

[3/4] Linking dependencies...

warning "nuxt-app > nuxt-fire@1.4.1" has incorrect peer dependency "firebase@^6.0.2".

warning "nuxt-app > firebase > @firebase/database@0.3.20" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/firestore@1.2.2" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/functions@0.4.6" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/messaging@0.3.19" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/performance@0.2.1" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/storage@0.2.15" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/auth > @firebase/auth-types@0.6.1" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/auth > @firebase/auth-types@0.6.1" has unmet peer dependency "@firebase/util@0.x".

warning "nuxt-app > firebase > @firebase/database > @firebase/database-types@0.3.11" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/firestore > @firebase/firestore-types@1.2.1" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/functions > @firebase/messaging-types@0.2.11" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/performance > @firebase/installations@0.1.0" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/storage > @firebase/storage-types@0.2.11" has unmet peer dependency "@firebase/app-types@0.x".

warning "nuxt-app > firebase > @firebase/storage > @firebase/storage-types@0.2.11" has unmet peer dependency "@firebase/util@0.x".

warning "nuxt-app > firebase > @firebase/performance > @firebase/installations > @firebase/installations-types@0.1.0" has unmet peer dependency "@firebase/app-types@0.x".

[4/4] Building fresh packages...

success Installed "create-nuxt-app@2.9.2" with binaries:

      - create-nuxt-app

'C:\Users\win' 不是内部或外部命令,也不是可运行的程序

或批处理文件。

error Command failed.

Exit code: 1

Command: C:\Users\win 10\AppData\Local\Yarn\bin\create-nuxt-app

Arguments: officialWebsite.shanglian

Directory: D:\demo\_WebDemo\officialWebsite.shanglian

Output:



info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.



D:\demo\_WebDemo\officialWebsite.shanglian>


你期待的结果是什么?

我希望有朋友帮我找到原因,谢谢!


   



推荐阅读
author-avatar
储茹吉雅卿
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有