-
-
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
Can't create a new project or upgrade existing one #5802
Comments
I think it's likely a network issue. Could you try this again and see if it works now? |
I did try just now, I also cleared yarn cache, I'm having this problem since few days (weeks?) and there are no problems with installing dependencies using yarn or any other network related. I could also do
|
How about running this command and try again?
Seems you have misconfigured the yarn registry with the |
and then running Feel free to close the issue as it's probably related to some misconfiguration on my side and may be hardly reproducible, but I don't recally any changes in my env other than just upgrading deps. I'll try to search for help in yarn repo as well |
I don't have cygwin installed on this machine so I can't reproduce this issue now. But it's very likely that it's a bug in Vue CLI. And likely caused by this line:
Maybe the output yarn config get registry contains some non-printing unicode characters under this specific execution environment.
|
Actually I'm using git-bash, I've just checked with cygwin (and with Window PowerShell) and it's working fine, so must be a git-bash related issue Also the non-printing chars is a good lead, I did yarn config get registry > test.txt and got
or as json: "\u001b[2K\u001b[1Ghttps://registry.yarnpkg.com" |
To deal with malformed stdout result retrieved from child processes. Fixes vuejs#5802
To deal with malformed stdout result retrieved from child processes. Fixes #5802
Thanks! |
Version
4.5.4
Reproduction link
n/a
just run
vue create
Environment info
Note that
npmGlobalPackages
shows@vue/cli: Not Found
, but i can still runvue
command and I've runnpm i -g @vue/cli
just before runningvue info
Steps to reproduce
run
vue create
(select vue 2 default settings)What is expected?
project is created
What is actually happening?
Contents of yarn-error.log
I don't think this is a yarn bug, when i run
yarn
in the project folder dependencies are sucessfully installed, but I still can't runvue upgrade
there:The text was updated successfully, but these errors were encountered: