verdaccio-ldap
verdaccio-ldap copied to clipboard
node-gyp related error with version 3.x
I get the following error when trying to install version 3.x:
sudo npm install -g verdaccio-ldap
> [email protected] install /usr/lib/node_modules/verdaccio-ldap/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/verdaccio-ldap/node_modules/dtrace-provider/build'
gyp ERR! System Linux 4.15.18-7-pve
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/verdaccio-ldap/node_modules/dtrace-provider
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
+ [email protected]
added 43 packages from 135 contributors in 1.722s
installing version 2.x works just fine though...
I think this is likely a permissions issue due to installing with sudo.
I tried the following after the failed install:
sudo chown -R verdaccio-user /usr/lib/node_modules
sudo chgrp -R verdaccio-user /usr/lib/node_modules
And then it worked after I tried installing again.
So this is probably not a bug with verdaccio-ldap
but hopefully this helps other people if they hit the same issue.
Thanks, I am sure it will help.
I have a question since you are using verdaccio-ldap with verdaccio.
It's been 2 year's I am trying and fail to use ldap with verdaccio. At that time, I was having issue during npm install
, the LDAP was spammed of authentication request. It would be great if you could share your experience with that plugin.