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

[config - gu] Fix npm_global error when no globals #9

Closed
JBallin opened this issue Jan 10, 2020 · 1 comment
Closed

[config - gu] Fix npm_global error when no globals #9

JBallin opened this issue Jan 10, 2020 · 1 comment
Labels
good first issue Good for newcomers

Comments

@JBallin
Copy link
Owner

JBallin commented Jan 10, 2020

ls: /usr/local/lib/node_modules: No such file or directory

An update to npm results in the global node_modules folder being deleted, so the command to get the list of packages fails (and doesn't record anything).

If the folder does not exist (but npm does exist), we should assume that there are no global node packages and simply return "empty".

@JBallin JBallin added the good first issue Good for newcomers label Jan 10, 2020
@JBallin JBallin changed the title Fix npm_global error when no globals installed [config - gu] Fix npm_global error when no globals installed Jan 10, 2020
@JBallin JBallin changed the title [config - gu] Fix npm_global error when no globals installed [config - gu] Fix npm_global error when no globals Jan 10, 2020
@JBallin
Copy link
Owner Author

JBallin commented May 25, 2020

I’m no longer seeing this issue.

@JBallin JBallin closed this as completed May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant