I'm a newbie to all this, and although I understand a little bit of basic coding, I'm clueless when it comes to using the terminal. I've installed Node.JS, but when I tried to install squiffy using the terminal command given in the squiffy documentation, I got this error:
Binks-MacBook-Pro-3:~ Bink$ npm install squiffy -g
npm ERR! tar.unpack untar error /Users/Bink/.npm/squiffy/2.6.0/package.tgz
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "squiffy" "-g"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! path /usr/local/lib/node_modules/squiffy
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/squiffy'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/squiffy']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/squiffy',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/squiffy',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR! 'FSReqWrap.oncomplete (fs.js:95:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Bink/npm-debug.log
I'm really unsure about what to do. I googled the "please try running this command again as root/Administrator" thing and a few people suggested a solution involving something called sudo, but I don't know what that is and I've heard it's dangerous for your computer if you use it wrong. Does anyone know what I should do?