Skip to content

Vue create fails for not having permission to write to global files #2956

Closed
@pickfire

Description

@pickfire

Version

3.1.3

Node and OS info

Node 11.1.0 / yarn 1.12.3 / Arch Linux

Steps to reproduce

> vue create test
 ERROR  Error: EACCES: permission denied, open '/usr/local/share/.config/yarn/global/node_modules/@vue/cli/lib/util/.versions'
Error: EACCES: permission denied, open '/usr/local/share/.config/yarn/global/node_modules/@vue/cli/lib/util/.versions'

What is expected?

vue should not write to global files

What is actually happening?

vue tries to write to global file '/usr/local/share/.config/yarn/global/node_modules/@vue/cli/lib/util/.versions' and fails if it does not have permission to do so


This can be fixed by just running sudo vue create test but why it root required to create a new package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementintend to implementThe team has the intention to implement this feature at some point. Contribution is also welcome.work-in-progress

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions