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

NPM User config path error #33

Open
ceuk opened this issue Aug 19, 2022 · 0 comments
Open

NPM User config path error #33

ceuk opened this issue Aug 19, 2022 · 0 comments

Comments

@ceuk
Copy link

ceuk commented Aug 19, 2022

Hey,

see:

if (!basePath.endsWith(".npmrc")) {
basePath = path.join(basePath, ".npmrc");
}

It's fairly common (I think) to not prefix nested dotfiles with a dot

e.g. mine is at ~/.config/npm/npmrc which causes this script to break as it tries to find the config file at ~/.config/npm/npmrc/.npmrc

Was just going to submit a PR but it might need a bit of thinking about so I'm raising a bug for now

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

No branches or pull requests

1 participant