Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Prototyping with Foundation for Apps Getting to Know Foundation for Apps Installing the Foundation for Apps CLI

Bohdan Afanasyev
PLUS
Bohdan Afanasyev
Courses Plus Student 2,536 Points

Problems with installations.

While trying to install using: npm install -g foundation-cli bower gulp

I get:

npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/bower' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/bower'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/bower', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/usr/local/lib/node_modules/bower', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25', npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53', npm ERR! 'FSReqWrap.oncomplete (fs.js:82: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/Illusion/npm-debug.log

echo $PATH gives:

echo $PATH /usr/local/git/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/local/bin

I was messing with python week ago, what wrong could I do and if there a chance to resolve that?

1 Answer

Have you tried running the command as sudo as that looks like a permissions issue.

Steve.

Bohdan Afanasyev
Bohdan Afanasyev
Courses Plus Student 2,536 Points

Thank you a lot, Steve! That helped me to resolve the problem, I will go back to studying. Have a nice day! :)

No problem! :-)