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 Creating a New App

local Server not running

Hi dear- My local server is not working. it was working yesterday I wanted to make some changes to previous app I created. It is giving me the following error every time I run "foundation-apps watch." but the same worked before.

C:\Users\Harjot\Desktop#trakker>foundation watch module.js:328 throw err; ^

Error: Cannot find module 'C:\Users\Harjot\AppData\Roaming\npm\node_modules\foundation-cli\bin\foundation.js' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3

C:\Users\Harjot\Desktop#trakker>

2 Answers

It seems that Foundation has also updated the syntax to use:

foundation watch

instead of:

foundation-cli watch
Austin Whipple
Austin Whipple
29,725 Points

Could be a couple of things, probably. First, it might a good idea to update NPM with npm update -g foundation-cli

I also found a couple of related support articles that might help:

Yes! Thank you Austin - I had to actually reinstall foundation and it worked .