jeremycx / node-LDAP

LDAP binding for node.js
MIT License
221 stars 43 forks source link

NPM Cannot install LDAP #108

Closed PascalSV closed 6 years ago

PascalSV commented 6 years ago

Hi there,

I am trying to install LDAP on Mac with npm version 5.6.0 as "sudo npm install LDAP" but installation fails:

LDAP@1.2.1 install XXX/node_modules/LDAP node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir 'XXX/node_modules/LDAP/build' gyp ERR! System Darwin 17.3.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd XXX/node_modules/LDAP gyp ERR! node -v v8.9.4 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN yyy@1.0.0 No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! LDAP@1.2.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the LDAP@1.2.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above

What am I doing wrong?

Thanks!