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

Can`t install face-recognition with npm !!! #136

Open
brunoals opened this issue Nov 6, 2018 · 1 comment
Open

Can`t install face-recognition with npm !!! #136

brunoals opened this issue Nov 6, 2018 · 1 comment

Comments

@brunoals
Copy link

brunoals commented Nov 6, 2018

Please HELP!!

When I execute the sudo npm install face-recognition the following error appears:
executing: git --version
executing: cmake --version
executing: mkdir -p dlib
{ Error: Command failed: mkdir -p dlib
mkdir: dlib: Permission denied

at ChildProcess.exithandler (child_process.js:289:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:611:12) killed: false, code: 1, signal: null, cmd: 'mkdir -p dlib' }

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node ./install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.

The log file:
verbose stack Error: [email protected] install: node ./install.js
97 verbose stack Exit status 1
97 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
97 verbose stack at EventEmitter.emit (events.js:182:13)
97 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
97 verbose stack at ChildProcess.emit (events.js:182:13)
97 verbose stack at maybeClose (internal/child_process.js:962:16)
97 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
98 verbose pkgid [email protected]
99 verbose cwd /Users/xuser/Project/FACE-RECOGNITION/SYSTEM/facerecog
100 verbose Darwin 17.2.0
101 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "dlib-build"
102 verbose node v11.0.0
103 verbose npm v6.4.1
104 error code ELIFECYCLE
105 error errno 1
106 error [email protected] install: node ./install.js
106 error Exit status 1
107 error Failed at the [email protected] install script.
107 error This is probably not a problem with npm. There is likely additional logging output above.
108 verbose exit [ 1, true ]

@justadudewhohacks
Copy link
Owner

Try npm install without sudo.

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