-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Installing @vue/cli globally using npm causes errors when listing npm global modules #5253
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
Comments
As for the |
I'm confused: The |
It's not an error. It's a warning.
Please refer to the documentation of
Most packages with the "watch" functionality in the Node.js ecosystem (such as
I don't know. It comes from |
@sodatea, I now figured I forgot to add the error message that appears when running - sorry for that (they are already shown in the linked pastebin, but I now added them into the end of my original post). So, given the |
I've taken a closer look at these messages. I think it's more like an npm problem. |
@sodatea, the error persists after doing what you've suggested. The strange thing is that the folders listed in that error do exist (also, I run the cmd as Admin) - I can just copy-paste the path given in the error to navigate to them. Any other idea? |
It's a common npm issue with no clear resolution npm/npm#17444 What about |
@sodatea, tried that, the error is still there 😞 |
@sodatea , I decided to "solve" it by calling |
@HeyJude1 I meet the same issue, but I found the directory "@vue/cli/node_modules/fsevents" is empty(even it include another empty directory "node_modules"), so I just remove the directory and the npm error message is gone, you can try it. |
@HeyJude1 Do you have your OS setup on a NVMe drive? |
Just to offer some confirmation to @sodatea recommendation, I uninstalled @vue/cli, did the |
C:\Users\denis\AppData\Roaming\npm |
form me i was using ubuntu 20.04 and i did the following: and it worked fine |
Version
4.2.3
Reproduction link
https://pastebin.com/5ciYS1uq
Environment info
Steps to reproduce
npm install -g @vue/cli
.npm list -g --depth=0
.What is expected?
Running
npm list -g --depth=0
shouldn't show errors. Also, runningvue info
should show see that@vue/cli
is installed globally.What is actually happening?
Running
npm install -g @vue/cli
displays multiple warnings.Then, running
npm list -g --depth=0
lists the global packages fine but then shows errors. Also, runningvue info
shows@vue/cli: not found
, althoughnpm list -g --depth=0
lists it.Running
vue create hello-world
after the above installation works fine, and thencd
ing into the folder and runningnpm run serve
also works fine, but I'd like to know what to do with those errors.cmd output
The text was updated successfully, but these errors were encountered: