Skip to content

RangeError: Incorrect locale information provided #648

Closed
@skobes

Description

@skobes

Describe the bug

npx create-vue prints RangeError: Incorrect locale information provided at startup, and then proceeds normally.

Expected behavior

No errors printed.

How to reproduce

Observed on Ubuntu 22.04.5 under WSL 2:

~$ npx create-vue
Need to install the following packages:
create-vue@3.13.0
Ok to proceed? (y)

RangeError: Incorrect locale information provided


Vue.js - The Progressive JavaScript Framework

✖ Project name: … vue-project

I suspect it is related to $LANG being C.UTF-8 (WSL default?), causing a call to Intl.getCanonicalLocales("C") in #450.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions