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

General Discussion

Jia Li
Jia Li
6,363 Points

weird 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

Foundation 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

Jia Li
Jia Li
6,363 Points

um...thank you for your help, i've tried both before i installed it again, but still having the same problem....

Aaron HARPT
Aaron HARPT
19,845 Points

try running npm install when you get the above errors.

Maybe 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
Jia Li
6,363 Points

yes, mac air. i did try sudo before but come out with the same problem

Give this a try. ZurbFoundation

Jia Li
Jia Li
6,363 Points

Yeah, i just started using this one. It's Just a little bit different from the terminal, but it did work. Thanks!