animetosho / Nyuu

Flexible usenet binary posting tool
224 stars 32 forks source link

gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/nyuu/node_modules/yencode/build' #47

Closed sanderjo closed 6 years ago

sanderjo commented 6 years ago

On my Ubuntu 18.04, I can't (re)install nyuu.

Tips appreciated. And in the meantime I'll search further myself.

sander@witte:~$ sudo npm install -g nyuu
/usr/local/bin/nyuu -> /usr/local/lib/node_modules/nyuu/bin/nyuu.js

> yencode@1.0.8 install /usr/local/lib/node_modules/nyuu/node_modules/yencode
> node-gyp rebuild

gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/nyuu/node_modules/yencode/build'
gyp ERR! System Linux 4.15.0-22-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/nyuu/node_modules/yencode
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yencode@1.0.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the yencode@1.0.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/sander/.npm/_logs/2018-06-14T11_58_33_530Z-debug.log
sander@witte:~$ 

sander@witte:~$ ll /usr/local/lib/node_modules/nyuu/node_modules/yencode/build
ls: cannot access '/usr/local/lib/node_modules/nyuu/node_modules/yencode/build': No such file or directory
sander@witte:~$ ll /usr/local/lib/node_modules/nyuu/node_modules/yencode/
ls: cannot access '/usr/local/lib/node_modules/nyuu/node_modules/yencode/': No such file or directory
sander@witte:~$ ll /usr/local/lib/node_modules/nyuu/node_modules/
ls: cannot access '/usr/local/lib/node_modules/nyuu/node_modules/': No such file or directory
sander@witte:~$ ll /usr/local/lib/node_modules/nyuu/
ls: cannot access '/usr/local/lib/node_modules/nyuu/': No such file or directory
sander@witte:~$ ll /usr/local/lib/node_modules/
total 12
drwxr-xr-x  3 root   root   4096 jun 14 13:58 ./
drwxr-xr-x  5 root   root   4096 apr 17 19:06 ../
drwxr-xr-x 11 nobody sander 4096 jun  8 07:05 npm/
sander@witte:~$ 
animetosho commented 6 years ago

Unfortunately I wouldn't know off the top of my head.

Some things you could try:

sanderjo commented 6 years ago

Thanks, I tried all three, and only errors.

So ... I grabbed the binary (https://github.com/animetosho/Nyuu/releases/download/v0.3.8/nyuu-v0.3.8-linux-amd64.tar.xz) and put it into /usr/local/bin/ ... and I can post.

Thanks!

animetosho commented 6 years ago

That's odd, but glad you got it working anyway!