Incorrect cache folder path in show_diagnostics
artemiyokulov opened this issue · comments
Artemiy Okulov commented
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
- Set
N_CACHE_PREFIX=/blabla/any/path
- set
N_PREFIX=/some/other/folder
- 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
?
John Gee commented
Oops. The directory checks in "doctor" did not get updated when the possible separate cache folder got added in #717
John Gee commented
Thanks for report. Fixed in v9.2.1.