vue-cli: Installing @vue/cli globally using npm causes errors when listing npm global modules

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'

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

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

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.

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

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.