Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Error with setup -- please help #224

Closed
winkerm opened this issue Oct 5, 2015 · 1 comment
Closed

Error with setup -- please help #224

winkerm opened this issue Oct 5, 2015 · 1 comment

Comments

@winkerm
Copy link

winkerm commented Oct 5, 2015

I'm very new to this but am extremely excited to get this setup. Can anyone help point me in the right direction from here? What am I doing wrong or what am I missing? Thank you all for your help!

new-host-5:~ mattwoehnker1$ npm install -g airsonos
npm ERR! Darwin 14.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "airsonos"
npm ERR! node v4.1.1
npm ERR! npm v2.14.4
npm ERR! path /usr/local/lib/node_modules/airsonos
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall rmdir

npm ERR! Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/airsonos'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/airsonos']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rmdir',
npm ERR! path: '/usr/local/lib/node_modules/airsonos' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/airsonos'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/airsonos']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/airsonos' }

npm ERR! Please include the following file with any support request:
npm ERR! /Users/mattwoehnker1/npm-debug.log
new-host-5:~ mattwoehnker1$

@zskulcsar
Copy link

You should try with elevated privileges, ie.: npm ERR! Please try running this command again as root/Administrator.

The package manager - npm in this case - tries to create files in system directories. The regular user doesn't have permission to apply those changes therefore you have to run the command as root.
For that you have to type:
sudo npm install -g airsonos - please note the sudo command at the beginning.

@stephen stephen closed this as completed Nov 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants