Error accessing `/usr/local/share/man/man1` during install
leesei opened this issue · comments
I'm encounter this on Mint 15 and LDME.
$ npm install -g rfc
/home/leesei/.nvm/versions/node/v0.12.1/bin/rfc -> /home/leesei/.nvm/versions/node/v0.12.1/lib/node_modules/rfc/bin/rfc
> rfc@0.0.8 install /home/leesei/.nvm/versions/node/v0.12.1/lib/node_modules/rfc
> make man
install rfc.1 /usr/local/share/man/man1
install: cannot create regular file ‘/usr/local/share/man/man1’: Permission denied
A workaround is sudo chmod 777 /usr/local/share/man/
.
Yeah you should have rights to that directory or use sudo
I think I encountered this issue 'cause I use nvm
to avoid sudo
-ing for
global packages.
How about adding sudo
for the make
target?
But that would break unattended installs and I doubt if it is a good
practice.
I'll try to look for any way to install manpage without sudo.
On Fri, May 8, 2015 at 1:31 AM, Joseph Werle notifications@github.com
wrote:
Yeah you should have rights to that directory or use sudo
—
Reply to this email directly or view it on GitHub
#5 (comment).
Update: I'm using nvm and found that the man page actually symlinked to ~/.nvm/versions/node/v0.12.3/share/man/man1
, which is in my $MANPATH
.
I'm not sure how this works, just to share this finding for further investigation.
EDIT: that manpage is installed beacuse https://docs.npmjs.com/files/package.json#man
So we don't need make man
actually.