首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Yarn:文件名、目录名或卷标语法不正确

Yarn:文件名、目录名或卷标语法不正确
EN

Stack Overflow用户
提问于 2018-12-25 23:12:12
回答 1查看 1.2K关注 0票数 1

我正在尝试遵循https://codeburst.io/create-a-static-site-in-15-minutes-or-less-using-vue-js-e4e2a9945ee6 .Some的命令似乎过时了。我在win 10上使用git-bash。我在开发一个便携式闪存驱动器。我已经使用以下命令安装了yarn:

代码语言:javascript
复制
npm install -g yarn

然后我做到了:

代码语言:javascript
复制
    $ yarn create nuxt-app nuxt1
    yarn create v1.12.3
    [1/4] Resolving packages...
    [2/4] Fetching packages...
    info fsevents@1.2.4: The platform "win32" is incompatible with this module.
    info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
    [3/4] Linking dependencies...
    warning "@vue/cli > @vue/cli-ui > graphql-tag@2.10.0" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 ||
    ^0.12.0 || ^0.13.0 || ^14.0.0".
    warning "@vue/cli > @vue/cli-ui > graphql-type-json@0.2.1" has unmet peer dependency "graphql@>=0.8.0".
    [4/4] Building fresh packages...
    success Installed "create-nuxt-app@2.1.1" with binaries:
          - create-nuxt-app
    The filename, directory name, or volume label syntax is incorrect.
    error Command failed.
    Exit code: 1
    Command: E:\nodejs\bin\create-nuxt-app
    Arguments: nuxt1
    Directory: E:\ENVS\js
    Output:

我在E:\ENVS\js文件夹中没有看到nuxt应用程序。我该如何解决这个问题呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-12-26 01:39:42

当你安装NodeJS而不是通过nvm时,这个问题来自Windows。

这只是我对这个案例的猜测。

请尝试将create-nuxt-app安装为全局

npm install -g create-nuxt-app

并通过以下方式在E:\ENVS\js上创建项目

create-nuxt-app nuxt1

希望这能帮助你和其他成员解决这个问题。xD

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53923525

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档