TooTallNate / node-speaker

Output PCM audio data to the speakers
655 stars 147 forks source link

configure error #99

Open imkimchi opened 7 years ago

imkimchi commented 7 years ago

I don't directly use this module but I think one of my dependency is using this module. Even though I run npm install command, permission denined.

OS: macOS Sierra 10.12 node: 8.0.0 npm: 5.0.0 node-gyp: 3.6.2

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/philip/.nvm/versions/node/v8.0.0/lib/node_modules/c
ovfefe-tweet/node_modules/speaker/build'
gyp ERR! System Darwin 16.0.0
gyp ERR! command "/Users/philip/.nvm/versions/node/v8.0.0/bin/node" "/Users/philip/.nvm/versions/node/v8.0.0/lib/n
ode_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/philip/.nvm/versions/node/v8.0.0/lib/node_modules/covfefe-tweet/node_modules/speaker
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! speaker@0.2.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.2.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/philip/.npm/_logs/2017-06-01T23_46_07_894Z-debug.log
TooTallNate commented 7 years ago

Out of curiosity, can you try with a version that is not Node.js 8.0.0?

LinusU commented 7 years ago

EACCES: permission denied

Looks like a permission problem, have you ever ran npm with sudo?