Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if ~/.npmrc has prefix=~/.npm-global the path solved incorrectly #21

Open
yaquawa opened this issue Jan 14, 2021 · 1 comment
Open

if ~/.npmrc has prefix=~/.npm-global the path solved incorrectly #21

yaquawa opened this issue Jan 14, 2021 · 1 comment

Comments

@yaquawa
Copy link

yaquawa commented Jan 14, 2021

How to reproduce

Adding the following to ~/.npmrc

prefix=~/.npm-global

global-dirs won't parse the ~ as home directory but as a literal string ~, it should parse it as os.homedir().

@sindresorhus
Copy link
Owner

Note to self: We can use https://github.com/sindresorhus/untildify for this.

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

No branches or pull requests

2 participants