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

Jia Li
6,363 Pointsweird problems with foundation installation
I was trying to install foundation for apps, but having the following errors:
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "foundation-cli" "bower" "gulp"
npm ERR! node v5.3.0
npm ERR! npm v3.5.2
npm ERR! path /usr/local/lib/node_modules/.staging/abbrev-e447be2d
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-e447be2d' -> '/usr/local/lib/node_modules/foundation-cli/node_modules/npm/node_modules/abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-e447be2d' -> '/usr/local/lib/node_modules/foundation-cli/node_modules/npm/node_modules/abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/BEAMAN/npm-debug.log
how am i suppose to rename ?
4 Answers

mkmk
15,897 PointsFoundation installation instructions: http://foundation.zurb.com/apps/docs/#!/installation
You may need to update Node/npm first, and you may need to run the foundation install as root to bypass this issue.
Another troubleshoot is to clear the npm cache : npm cache clean -f

Aaron HARPT
19,845 Pointstry running npm install when you get the above errors.

Jeri Yorde
97 PointsMaybe run as admin with sudo sudo install -g foundation-cli bower gulp
Maybe try the previous version of Node? Or update Ruby? What are your versions for Node, Ruby, Git, and Sass?
You are on a mac yes?

Jia Li
6,363 Pointsyes, mac air. i did try sudo before but come out with the same problem

Jeri Yorde
97 PointsGive this a try. ZurbFoundation

Jia Li
6,363 PointsYeah, i just started using this one. It's Just a little bit different from the terminal, but it did work. Thanks!
Jia Li
6,363 PointsJia Li
6,363 Pointsum...thank you for your help, i've tried both before i installed it again, but still having the same problem....