Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-gyp related error with version 3.x #56

Open
jharris4 opened this issue Mar 9, 2019 · 2 comments
Open

node-gyp related error with version 3.x #56

jharris4 opened this issue Mar 9, 2019 · 2 comments

Comments

@jharris4
Copy link
Contributor

jharris4 commented Mar 9, 2019

I get the following error when trying to install version 3.x:

sudo npm install -g verdaccio-ldap

> dtrace-provider@0.8.7 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 
+ verdaccio-ldap@3.1.0
added 43 packages from 135 contributors in 1.722s

installing version 2.x works just fine though...

@jharris4
Copy link
Contributor Author

jharris4 commented Mar 9, 2019

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.

@kopax
Copy link
Contributor

kopax commented Sep 27, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants