-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
quasar info shows @quasar/cli as undefined inside app folder, shows correct cli version outside app folders #4224
Comments
I have this exact issue but assumed it was just my environment. |
Can you confirm that you've globally uninstalled the old "quasar-cli" package? |
Also, @GordonBlahut : are you running the command in a genuine terminal or in a code editor terminal? |
I've just been through this again and it seems it's working correctly when you use a genuine terminal i.e CMD or GitBash CMD. It's only when I opened Webstorm that it failed. When checking the terminal type in Webstorm (settings | Search "terminal") did it show it was using powershell. |
From what I can see, webstorm is prioritizing the locally installed Quasar package over the global one. Running Now I understand where Webstorm is failing, I'll try to find a way around it. |
I've got some more information on this now. For webstorm at least, there is an option in Settings | Terminal called: This is enabled by default and I believe registers the local quasar package as the global one (bad!!). Quasar relies on the global one to trigger first and it in turn calls the local app version. Unticking this option has fixed my issue. |
@rstoenescu I am using PowerShell to run commands. If you mean the old pre-v1 CLI, I only ever started with the v1 betas. |
@GordonBlahut How have you installed your global deps? Did you use yarn or npm? We always recommend npm for globals Depending on which version of yarn you're using, you could be falling foul of this issue: yarnpkg/yarn#6902 |
@GordonBlahut You're not answering all of our questions. Please read the thread. Are you in the same situation as @webnoob ? Meaning you're using the terminal in a code editor? And which? And make sure it doesn't automatically pick up |
Sorry it was the middle of the night where I am when some of these questions were asked. I thought I answered everything but I'll confirm below. Let me know if you still need additional information.
Are you talking about the ~0.17 version of the package? If so, I never used anything before @quasar/cli-v1.0.0-beta.7. I used npm to upgrade from @quasar/cli-v1.0.0-beta.7 to @quasar/cli-v1.0.0-rc.2
I am running the command using PowerShell. I use Visual Studio 2017 and Visual Studio Code for editing, depending on if I am doing server or client stuff. I do launch the PowerShell process from a context menu in VS 2017 though for convenience.
I use npm for globals and yarn for locals.
I am using Yarn 1.16.0. I did try creating a new app folder using npm for locals just to see if it was a yarn issue for locals and ran into the same issue. If I am understanding that issue correctly, it appears to be an issue when using yarn to install global packages, which I am not doing and appears to have been resolved in 1.15.2 so I don't think this is it.
Ah, this appears to be exactly what's happening in my case. Now to figure out why it's doing that and how to change it, but it does not appear to be a Quasar concern, unless you want to detect cases where the local package is invoked without the global one and print warnings or something. |
This is what Webstorm was doing as well - I found a setting to control it. Perhaps VS has the same option. I'm not sure your suggestion is possible as the quasar cli relies on the global one calling the app one not the other way round. |
Same issue here, with using the genuine terminal (Windows 10 cmd). Turned out I had to do some cleaning in my PATH env variable. Maybe some editor (I use VS Code) has injected Tip: run command |
@mpacary Thanks for that info |
Software version
Quasar: 1.0.0-rc.2
@quasar/app (v1+ only): 1.0.0-rc.4
@quasar/cli: 1.0.0-rc.2
OS: Windows_NT(10.0.17763) - win32/x64
Node: 10.15.3
NPM: 6.9.0
Yarn: 1.16.0
What did you get as the error?
Inside a Quasar app folder,
quasar info
shows @quasar/cli asundefined
under Global packages and CLI commands such asquasar upgrade
are unknown/missing from the command list.Outside a Quasar app folder,
quasar info
shows the expected @quasar/cli version and commands.What were you expecting?
To see the correct @quasar/cli version and be able to run @quasar/cli commands such as
quasar upgrade
.What steps did you take, to get the error?
On Windows 10, used npm to install @quasar/cli globally.
quasar create
to create the app folder (selected yarn).quasar info
to see quasar info with missing CLI version.Ran into this because I was trying to do
quasar upgrade
from a v1.0.0-beta25 project as per the documentation and receivedTried reinstalling yarn, node/npm, deleting yarn.lock, deleting node_modules, etc.
The text was updated successfully, but these errors were encountered: