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

Incorrect cache folder path in show_diagnostics #795

Closed
artemiyokulov opened this issue Feb 22, 2024 · 2 comments
Closed

Incorrect cache folder path in show_diagnostics #795

artemiyokulov opened this issue Feb 22, 2024 · 2 comments
Labels

Comments

@artemiyokulov
Copy link

Bug Report

https://github.com/tj/n/blob/v9.2.0/bin/n#L1561

Instead local cache_root="${N_PREFIX}/n" needs local cache_root="${N_CACHE_PREFIX}/n"

Summary

Steps to Reproduce

  1. Set N_CACHE_PREFIX=/blabla/any/path
  2. set N_PREFIX=/some/other/folder
  3. run mkdir -p $N_CACHE_PREFIX $N_PREFIX && n doctor

Expected Behaviour

doctor command run successful

Actual Behaviour

get error

Checking permissions for cache folder...
INFO Cache folder does not exist: /usr/local/n

Other Information

Configuration Details

$ n --version

9.2.0

$ command -v node
?

$ node -p process.platform
?
@shadowspawn
Copy link
Collaborator

Oops. The directory checks in "doctor" did not get updated when the possible separate cache folder got added in #717

@shadowspawn
Copy link
Collaborator

Thanks for report. Fixed in v9.2.1.

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

No branches or pull requests

2 participants