我正在尝试遵循https://codeburst.io/create-a-static-site-in-15-minutes-or-less-using-vue-js-e4e2a9945ee6 .Some的命令似乎过时了。我在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应用程序。我该如何解决这个问题呢?
发布于 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
https://stackoverflow.com/questions/53923525
复制相似问题