Skip to content

[BUG] npm error caused by a single quote in username #690

Closed
@fbalhawan

Description

I'm trying to install react native, whenever I execute npx react-native init AwesomeProject
I get

`npm ERR! code ENOLOCAL
npm ERR! Could not install from "HP\AppData\Roaming\npm-cache_npx\2732" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Fouad's HP\AppData\Roaming\npm-cache_logs\2020-01-13T01_20_40_146Z-debug.log
Install for react-native@latest failed with code 1`

As you can see, my windows username is "Fouad's HP", and the error shows that it npm could not install from HP\AppData... instead of Fouad'sHP\AppData...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions