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
Hi there,
I am trying to install LDAP on Mac with npm version 5.6.0 as "sudo npm install LDAP" but installation fails:
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 aboveWhat am I doing wrong?
Thanks!