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 trialHarjot Kaur
7,277 Pointslive 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
31,009 Pointsreinstall node and see if that fixes it.
Harjot Kaur
7,277 Pointsno, did not work I tried! Thanks Jason.
Elizabeth Finch
4,149 PointsTry restarting the computer. Also make unsure the file exists at the address it describes the error.
Iain Simmons
Treehouse Moderator 32,305 PointsI 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:
- Create new file
- Close browser window that has the app open in it
- Stop the watch command by pressing
Ctrl + C
(maybe even twice, quicker thanCtrl + C
thenY
andEnter
) - Start the watch command with
foundation watch
again (it should open a new browser tab automatically when you do this).