Closed ahmadawais closed 6 years ago
Fixed it by ~/.gh.json file.
I see this message but I have a ~/.gh.json
file. Any ideas?
Ok, On Ubuntu 18.10 the node module install directory is now /usr/local/lib/node_modules
.
Editing the ~/.gh.json
file and changing the line:
"plugins_path": "/usr/lib/node_modules"
to
"plugins_path": "/usr/local/lib/node_modules"
fixed the issue.
@rotty3000 When gh
is run, we look for plugins_path
and if it is not in your ~/.gh.json
we run npm root -g
which outputs the dir of your global node_modules path. Then we add that path to ~/.gh.json
.
I'm not sure why that isn't working in your case.
For future proofing npm installations I like doing this: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally#manually-change-npms-default-directory
@protoEvangelion I think the issue was that my .gh.json had an actual value, but it was incorrect.
Got it, thanks for the clarification 😄
The cli is working fine but I keep getting this warning at the top and end of the process.