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 Grid Layout and UI Components Modals and Action Sheets

live server not working

Hi all- I am having trouble running "foundation watch" . It was working normal and stopped working when I reloaded after adding new folder to update build. Its not working since then. I have already tried updating npm, reinstalling foundation, updating bower and gulp. anything possible but still not working.

this is the error i am getting Users\Harjot\Desktop\trekker>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

4 Answers

jason chan
jason chan
31,009 Points

reinstall node and see if that fixes it.

no, did not work I tried! Thanks Jason.

Try restarting the computer. Also make unsure the file exists at the address it describes the error.

I had this same problem (on Windows, running the new version of Foundation for Apps).

Whenever I wanted to close and run foundation watch again, I had to first close the browser window that was displaying my app. I think it is because there will be a running process looking for changes to reload the page, and it's separate from the gulp tasks used to update files.

So, the process is:

  1. Create new file
  2. Close browser window that has the app open in it
  3. Stop the watch command by pressing Ctrl + C (maybe even twice, quicker than Ctrl + C then Y and Enter)
  4. Start the watch command with foundation watch again (it should open a new browser tab automatically when you do this).