-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
“ERROR command failed: npm install --loglevel error” when trying to do “vue create” #3102
Comments
After switching the machine I was using to Ubuntu 18.04 LTS I am no longer having the problem, so perhaps it's an issue specific to Ubuntu 18.10? |
I'm having the same problem with same error message too when trying to create new or run |
Having this same issue as well, already tried everything from #889 node: |
Well this was the problem I also faced. But I found that you can install it using yarn. |
I am having this problem when compiling inside a snapcraft environment |
#3466 (comment) |
The same issue! |
Check issue #889. |
I'm coming up against this issue specifically when using Yarn, NPM is working fine but Yarn keeps throwing this damn error, googling I haven't found anything out either, tearing my hair out trying to get this to work, never used to have problems! |
我也遇到这个问题,我的解决方式是,以管理员身份运行,就可以了 |
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 |
What worked for me: Not trying to Solution: runing I'm running Windows 10. I hope this helps someone. |
thanks. |
yes what is solution for this |
this is not working for me. Can you suggest any another way please |
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 |
Eu estava obtendo esse erro no terminal com o gerenciador de pacote npm,eu desinstalei o @vue/cli global que eu havia instalado na maquina com o comando npm uninstall -g @vue/cli,em seguida eu limpei o cache do npm com o comando npm cache clean --force e em seguida reinstalei novamente o vue-cli com o comando npm i -g @vue/cli,com ele instalado criei um novo projeto com o comando vue create nome do projeto e parou de aparecer esse erro. |
我在macos 上碰到该问题,安装yarn之后,问题便不再出现 |
There may be a problem with the version of node. This problem occurred when I was using version 16.0. It was like ERROR command failed: npm install --loglevel error --legacy-peer-deps |
am having this issue when creating a vue project .... and am using good internet |
I had same issue when i was installing vue-cli with npx .... tried all the solutions from google.. nothing worked for me .. so then i moved to install vue-cli with yarn package manager thats when i figured out the issue .. my issue was basically my node version which was 8.x.x but yarn was expecting 10.x.x with nvm i have installed latest node which is 16.x.x then tried installing vue-cli with yarn .. it worked like charm!!!! |
npm ERR! code 1 npm ERR! A complete log of this run can be found in: Did anyone find any solution to this issue? |
Incase you encounter the error, just run |
problem log:
Solve: check proxy at config
clean and set proxy
|
This problem I also encountered, I was solved like this: use the administrator to open the terminal, run the command, can be solved。 Hope this helps you! |
Version
3.2.1
Environment info
Steps to reproduce
vue create portfolio
What is expected?
Start a new Vue project.
What is actually happening?
The text was updated successfully, but these errors were encountered: