Skip to content
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

Installing @vue/cli globally using npm causes errors when listing npm global modules #5253

Closed
OfirD1 opened this issue Mar 9, 2020 · 15 comments

Comments

@OfirD1
Copy link

OfirD1 commented Mar 9, 2020

Version

4.2.3

Reproduction link

https://pastebin.com/5ciYS1uq

Environment info

System:
    OS: Windows 10 
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.8GHz
Binaries:
    Node: 12.16.1
    Yarn: 1.15.2
    npm: 6.13.4
npmGlobalPackages:
   @vue/cli: Not Found

Steps to reproduce

  1. Run npm install -g @vue/cli.
  2. Run npm list -g --depth=0.

What is expected?

Running npm list -g --depth=0 shouldn't show errors. Also, running vue 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, running vue info shows @vue/cli: not found, although npm list -g --depth=0 lists it.


Running vue create hello-world after the above installation works fine, and then cding into the folder and running npm run serve also works fine, but I'd like to know what to do with those errors.

cmd output

PS C:\Users\MyUser\Desktop\New folder (2)\hello-world-2> npm install -g @vue/cli                              
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\@vue\cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: abbrev@1.1.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\abbrev):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\abbrev' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.abbrev.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ansi-regex@2.1.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\ansi-regex):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\ansi-regex' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.ansi-regex.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: aproba@1.2.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\aproba):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\aproba' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.aproba.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: balanced-match@1.0.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\balanced-match):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\balanced-match' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.balanced-match.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chownr@1.1.3 (node_modules\@vue\cli\node_modules\fsevents\node_modules\chownr):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\chownr' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.chownr.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: code-point-at@1.1.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\code-point-at):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\code-point-at' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.code-point-at.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: concat-map@0.0.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\concat-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\concat-map' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.concat-map.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: console-control-strings@1.1.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\console-control-strings):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\console-control-strings' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.console-control-strings.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: core-util-is@1.0.2 (node_modules\@vue\cli\node_modules\fsevents\node_modules\core-util-is):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\core-util-is' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.core-util-is.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: deep-extend@0.6.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\deep-extend):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\deep-extend' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.deep-extend.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: delegates@1.0.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\delegates):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\delegates' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.delegates.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: detect-libc@1.0.3 (node_modules\@vue\cli\node_modules\fsevents\node_modules\detect-libc):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\detect-libc' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.detect-libc.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs.realpath@1.0.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\fs.realpath):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\fs.realpath' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.fs.realpath.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: has-unicode@2.0.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\has-unicode):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\has-unicode' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.has-unicode.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: inherits@2.0.4 (node_modules\@vue\cli\node_modules\fsevents\node_modules\inherits):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\inherits' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.inherits.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ini@1.3.5 (node_modules\@vue\cli\node_modules\fsevents\node_modules\ini):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\ini' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.ini.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: isarray@1.0.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\isarray):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\isarray' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.isarray.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@0.0.8 (node_modules\@vue\cli\node_modules\fsevents\node_modules\minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\minimist' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.minimist.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ms@2.1.2 (node_modules\@vue\cli\node_modules\fsevents\node_modules\ms):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\ms' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.ms.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: npm-normalize-package-bin@1.0.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\npm-normalize-package-bin):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\npm-normalize-package-bin' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.npm-normalize-package-bin.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: number-is-nan@1.0.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\number-is-nan):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\number-is-nan' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.number-is-nan.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: object-assign@4.1.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\object-assign):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\object-assign' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.object-assign.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-homedir@1.0.2 (node_modules\@vue\cli\node_modules\fsevents\node_modules\os-homedir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\os-homedir' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.os-homedir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-tmpdir@1.0.2 (node_modules\@vue\cli\node_modules\fsevents\node_modules\os-tmpdir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\os-tmpdir' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.os-tmpdir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: path-is-absolute@1.0.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\path-is-absolute):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\path-is-absolute' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.path-is-absolute.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: process-nextick-args@2.0.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\process-nextick-args):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\process-nextick-args' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.process-nextick-args.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\rc\node_modules\minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\rc\node_modules\minimist' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\rc\node_modules\.minimist.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safe-buffer@5.1.2 (node_modules\@vue\cli\node_modules\fsevents\node_modules\safe-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\safe-buffer' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.safe-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safer-buffer@2.1.2 (node_modules\@vue\cli\node_modules\fsevents\node_modules\safer-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\safer-buffer' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.safer-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sax@1.2.4 (node_modules\@vue\cli\node_modules\fsevents\node_modules\sax):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\sax' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.sax.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: semver@5.7.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\semver):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\semver' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.semver.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: set-blocking@2.0.0 (node_modules\@vue\cli\node_modules\fsevents\node_modules\set-blocking):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\set-blocking' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.set-blocking.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: signal-exit@3.0.2 (node_modules\@vue\cli\node_modules\fsevents\node_modules\signal-exit):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\signal-exit' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.signal-exit.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-json-comments@2.0.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\strip-json-comments):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\strip-json-comments' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.strip-json-comments.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: util-deprecate@1.0.2 (node_modules\@vue\cli\node_modules\fsevents\node_modules\util-deprecate):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\util-deprecate' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.util-deprecate.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: wrappy@1.0.2 (node_modules\@vue\cli\node_modules\fsevents\node_modules\wrappy):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\wrappy' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.wrappy.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: yallist@3.1.1 (node_modules\@vue\cli\node_modules\fsevents\node_modules\yallist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\yallist' -> 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\.yallist.DELETE'
PS C:\Users\MyUser\Desktop\New folder (2)\hello-world> npm list -g --depth=0
C:\Users\MyUser\AppData\Roaming\npm
+-- @vue/cli@4.2.3
+-- browserify@16.2.3
+-- gulp-cli@2.2.0
`-- yarn@1.15.2

npm ERR! error in C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents: ENOENT: no such file or directory, open 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\package.json'
npm ERR! error in C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\rc: ENOENT: no such file or directory, open 'C:\Users\MyUser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fsevents\node_modules\rc\package.json'
@sodatea
Copy link
Member

sodatea commented Mar 9, 2020

The first deprecation warning: tracked at #5220
The second: tracked at #5125

The rest is fine, it's an optional dependency after all. The cause is that the fsevents package is only available for macOS.

@sodatea sodatea closed this as completed Mar 9, 2020
@sodatea
Copy link
Member

sodatea commented Mar 9, 2020

As for the vue info issue, it's a bug in https://github.com/tabrindle/envinfo

@OfirD1
Copy link
Author

OfirD1 commented Mar 9, 2020

@sodatea:

The rest is fine, it's an optional dependency after all. The cause is that the fsevents package is only available for macOS.

I'm confused: The fsevents error appears because of @vue/cli installation. I presume it shouldn't cause errors regardless of the OS. So why does it depends on a macOS-only file? How should one make the error disappear on Windows?

@sodatea
Copy link
Member

sodatea commented Mar 10, 2020

I presume it shouldn't cause errors regardless of the OS

It's not an error. It's a warning.

So why does it depends on a macOS-only file

Please refer to the documentation of fsevents:

Most packages with the "watch" functionality in the Node.js ecosystem (such as webpack, jest, etc.) would depend on chokidar, which optionally depends on fsevents. "Optionally" means it still works without that dependency.

How should one make the error disappear on Windows?

I don't know. It comes from npm, and it's not an error.

@OfirD1
Copy link
Author

OfirD1 commented Mar 10, 2020

@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 npm ERR, would you suggest something different than your last comment?

@sodatea
Copy link
Member

sodatea commented Mar 10, 2020

I've taken a closer look at these messages.
The weird thing is that on my Windows machine there aren't so many warnings. Also, packages like abbrev and ansi-regex aren't dependencies of fsevents, so the directory structure in the warning messages does not look right.

I think it's more like an npm problem.
Please try to run npm cache verify and then reinstall the package with npm i -g @vue/cli.
If that doesn't work, run npm cache clean -f and npm i -g @vue/cli.
If that still doesn't work, run npm i -g @vue/cli --no-optional.

@OfirD1
Copy link
Author

OfirD1 commented Mar 10, 2020

@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?

@sodatea
Copy link
Member

sodatea commented Mar 10, 2020

It's a common npm issue with no clear resolution npm/npm#17444

What about npm uninstall -g @vue/cli first?
Also worth trying installing without the Admin priviledge, because it could be a permission issue when accessing the .DELETE files.

@OfirD1
Copy link
Author

OfirD1 commented Mar 10, 2020

@sodatea, tried that, the error is still there 😞

@OfirD1
Copy link
Author

OfirD1 commented Mar 10, 2020

@sodatea , I decided to "solve" it by calling npm init inside the folders mentioned in the error, and just create a dummy package.json.

@Johnson9009
Copy link

@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.

@rajshrimohanks
Copy link

@HeyJude1 Do you have your OS setup on a NVMe drive?

@kayankay
Copy link

kayankay commented May 2, 2020

Just to offer some confirmation to @sodatea recommendation, I uninstalled @vue/cli, did the npm cache verify and then tried npm i -g @vue/cli --no-optional and it has removed the errors I was seeing places like npm list. So it sounds like there are a few options in this thread for future google searches.

@madridMMadrid
Copy link

C:\Users\denis\AppData\Roaming\npm
Delete everything inside a folder!
and run npm install -g @vue/cli

@mod7ex
Copy link

mod7ex commented Feb 9, 2021

form me i was using ubuntu 20.04 and i did the following:
sudo npm install -g npm@latest
hash -r
npm install -g @vue/cli @vue/cli-service-global

and it worked fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants