纱:文件名,目录名或卷标签语法不正确

时间:2018-12-25 15:12:12

标签: npm yarnpkg nuxt

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

npm install -g yarn

然后我做了:

    $ 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应用程序。我该如何解决?

1 个答案:

答案 0 :(得分:1)

此问题来自Windows,而不是通过NodeJS安装nvm的。

这只是我对这种情况的猜测。

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

npm install -g create-nuxt-app

并通过{p>在E:\ENVS\js上创建项目

create-nuxt-app nuxt1

希望这可以帮助您和其他成员解决此问题。 xD