尝试执行“ Vue创建”时,“错误命令失败:npm install --loglevel错误”

时间:2018-12-09 12:49:03

标签: vue.js vue-cli

Vue CLI v3.2.1
✨  Creating project in /home/mcaubrey511/portfolio.
  Initializing git repository...
⚙  Installing CLI plugins. This might take a while...


> yorkie@2.0.0 install /home/mcaubrey511/portfolio/node_modules/yorkie
> node bin/install.js


ERROR  command failed: npm install --loglevel error

环境信息

系统:

OS:Linux 4.18 Ubuntu 18.10(宇宙墨鱼)

CPU:(1)x 2.30 GHz下的x64 Intel(R)Xeon(R)CPU

二进制文件:

节点:10.14.1-/ usr / bin / node

npm:6.4.1-/ usr / bin / npm

npmPackages:

@ vue / babel-preset-app:3.2.0

@ vue / cli-overlay:3.2.0

@ vue / cli-plugin-babel:^ 3.2.0 => 3.2.0

@ vue / cli-plugin-eslint:^ 3.2.0 => 3.2.1

@ vue / cli-service:^ 3.2.0 => 3.2.0

@ vue / cli-shared-utils:3.2.0

@ vue / component-compiler-utils:2.3.0

@ vue / preload-webpack-plugin:1.1.0

@ vue / web-component-wrapper:1.2.0

babel-helper-vue-jsx-merge-props:2.0.3

babel-plugin-transform-vue-jsx:4.0.1

eslint-plugin-vue:4.7.1

vue-eslint-parser:2.0.3

vue-hot-reload-api:2.3.1

vue-loader:15.4.2

vue-style-loader:4.1.2

vue-template-es2015-compiler:1.6.0

npmGlobalPackages:

@ vue / cli:3.2.1


有什么想法吗,或者我可以做些什么来使它工作?

1 个答案:

答案 0 :(得分:0)

将我使用的计算机切换到Ubuntu 18.04 LTS之后,我不再遇到问题。我建立了an issue on the vue-cli存储库,似乎至少有一个人遇到类似的问题,但是环境不同。