vue-cli: “ERROR command failed: npm install --loglevel error” when trying to do “vue create”
Version
3.2.1
Environment info
System:
OS: Linux 4.18 Ubuntu 18.10 (Cosmic Cuttlefish)
CPU: (1) x64 Intel(R) Xeon(R) CPU @ 2.30GHz
Binaries:
Node: 10.14.1 - /usr/bin/node
Yarn: Not Found
npm: 6.4.1 - /usr/bin/npm
Browsers:
Chrome: Not Found
Firefox: Not Found
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
Steps to reproduce
vue create portfolio
What is expected?
Start a new Vue project.
What is actually happening?
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
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 15
- Comments: 25 (2 by maintainers)
Closing this because the original issue is no longer reproducible, and the later ones are likely to be caused by permission issues https://cli.vuejs.org/guide/troubleshooting.html#running-installation-with-sudo-or-as-root
I was having the same issue using Ubuntu 18.04, and could solve by uninstalling vue using NPM and then installing it again using YARN.
Commands to uninstall vue:
Install yarn: https://classic.yarnpkg.com/en/docs/install/#debian-stable
Then proceed to create app
vue create my-app
and install the preset also using yarn.What worked for me:
Not trying to
vue create projectname
in a Google Drive “G:” drive directory.Solution: runing
vue create projectname
in a C:\ drive directory.I’m running Windows 10.
I hope this helps someone.
Having this same issue as well, already tried everything from https://github.com/vuejs/vue-cli/issues/889
node:
v8.11.2
npm:6.5.0
osx:10.13.6
this is not working for me. Can you suggest any another way please
I’m having the same problem with same error message too when trying to create new or run
npm install
in existing project. I’m using Node 11 within docker and until now never had any problems creating projects with vue-cli.