Skip to content

vue inspect returns "Failed to locate @vue/cli-service." (fails to find global @vue/cli-service on Windows) #1805

@folmert

Description

@folmert

Version

3.0.0-rc.3

Reproduction link

https://cli.vuejs.org/guide/prototyping.html

Steps to reproduce

Just run vue inspect in the project directory.

What is expected?

It should return the config in the command line output.

What is actually happening?

Returns ERROR Failed to locate @vue/cli-service. Make sure you are in the right directory.
Also didn't work when I've explicitly installed @vue/cli-service globally (yarn global add @vue/cli-service)

It did work however when I installed @vue/cli-service locally (yarn add @vue/cli-service), but for my colleague who's using Mac it's working out of the box (without having to install cli-service locally). Perhaps it can be fixed on vue-cli side to find global cli-service? Maybe it's some path issue?


Node version: 10.6.0.
OS: Windows 10.
Command line: Cmder, cmd (with admin rights).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions